cups: do not check permissions on $PREFIX/tmp

This commit is contained in:
Leonid Pliushch 2020-07-24 17:11:41 +03:00
parent 53e592a5f5
commit 9c52178c83
2 changed files with 16 additions and 1 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE="https://www.cups.org/"
TERMUX_PKG_DESCRIPTION="Common UNIX Printing System" TERMUX_PKG_DESCRIPTION="Common UNIX Printing System"
TERMUX_PKG_LICENSE="Apache-2.0" TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_VERSION="2.3.3" TERMUX_PKG_VERSION="2.3.3"
TERMUX_PKG_REVISION=3 TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL="https://github.com/apple/cups/releases/download/v${TERMUX_PKG_VERSION}/cups-${TERMUX_PKG_VERSION}-source.tar.gz" TERMUX_PKG_SRCURL="https://github.com/apple/cups/releases/download/v${TERMUX_PKG_VERSION}/cups-${TERMUX_PKG_VERSION}-source.tar.gz"
TERMUX_PKG_SHA256="261fd948bce8647b6d5cb2a1784f0c24cc52b5c4e827b71d726020bcc502f3ee" TERMUX_PKG_SHA256="261fd948bce8647b6d5cb2a1784f0c24cc52b5c4e827b71d726020bcc502f3ee"
TERMUX_PKG_DEPENDS="libiconv, libcrypt" TERMUX_PKG_DEPENDS="libiconv, libcrypt"

View File

@ -0,0 +1,15 @@
diff -uNr cups-2.3.3/scheduler/conf.c cups-2.3.3.mod/scheduler/conf.c
--- cups-2.3.3/scheduler/conf.c 2020-04-27 21:04:29.000000000 +0300
+++ cups-2.3.3.mod/scheduler/conf.c 2020-07-24 17:10:21.669188122 +0300
@@ -1180,11 +1180,6 @@
else if (!S_ISDIR(tmpinfo.st_mode))
cupsdLogMessage(CUPSD_LOG_ERROR, "TMPDIR (%s) is not a directory.",
tmpdir);
- else if ((tmpinfo.st_uid != User || !(tmpinfo.st_mode & S_IWUSR)) &&
- (tmpinfo.st_gid != Group || !(tmpinfo.st_mode & S_IWGRP)) &&
- !(tmpinfo.st_mode & S_IWOTH))
- cupsdLogMessage(CUPSD_LOG_ERROR,
- "TMPDIR (%s) has the wrong permissions.", tmpdir);
else
cupsdSetString(&TempDir, tmpdir);
}