summaryrefslogtreecommitdiff
path: root/scheduler
diff options
context:
space:
mode:
authorMartin Pitt <mpitt@debian.org>2016-08-09 18:11:06 +0200
committerDidier Raboud <odyx@debian.org>2017-11-02 15:50:33 +0100
commita85937dfd2c14b467f48340c6fff62e68b625897 (patch)
treecbba269c86db7a3367bc6d6976020eb736a0ed6c /scheduler
parent429490efd74d93b28eeadc7f45131fe150908fc4 (diff)
Install root backends world-readable.
This is needed: - to comply with Debian Policy - because it is both nonsensical to to not do so - it also breaks system checkers, bug reporting, etc Bug: http://www.cups.org/str.php?L2935 Bug-Debian: http://bugs.debian.org/410171 Last-Update: 2015-02-10 Patch-Name: rootbackends-worldreadable.patch
Diffstat (limited to 'scheduler')
-rw-r--r--scheduler/cups-deviced.c2
-rw-r--r--scheduler/job.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/scheduler/cups-deviced.c b/scheduler/cups-deviced.c
index 13efa54ff..9a1b8d3e1 100644
--- a/scheduler/cups-deviced.c
+++ b/scheduler/cups-deviced.c
@@ -268,7 +268,7 @@ main(int argc, /* I - Number of command-line args */
* all others run as the unprivileged user...
*/
- start_backend(dent->filename, !(dent->fileinfo.st_mode & (S_IWGRP | S_IRWXO)));
+ start_backend(dent->filename, !(dent->fileinfo.st_mode & (S_IWGRP | S_IWOTH | S_IXOTH)));
}
cupsDirClose(dir);
diff --git a/scheduler/job.c b/scheduler/job.c
index 86e75e65c..fb599bf8f 100644
--- a/scheduler/job.c
+++ b/scheduler/job.c
@@ -1250,7 +1250,7 @@ cupsdContinueJob(cupsd_job_t *job) /* I - Job */
else if (stat(command, &backinfo))
backroot = 0;
else
- backroot = !(backinfo.st_mode & (S_IWGRP | S_IRWXO));
+ backroot = !(backinfo.st_mode & (S_IWGRP | S_IWOTH | S_IXOTH));
argv[0] = job->printer->sanitized_device_uri;