-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cups-deviced and cups-driverd should set CFProcessPath #2837
Comments
CUPS.org User: mike Reassigning priority... This will take a little work... |
CUPS.org User: mike We also need to do this in cups-deviced... |
CUPS.org User: mike Fixed in Subversion repository. |
"str2837-1.4.patch": Index: scheduler/util.c--- scheduler/util.c (revision 7617)
#include "util.h" /* /*
Index: scheduler/util.h--- scheduler/util.h (revision 7617)
-extern int cupsdCompareNames(const char *s, const char *t);
if ((serverbin = getenv("CUPS_SERVERBIN")) == NULL)
while ((dent = cupsDirRead(dir)) != NULL)
@@ -1674,7 +1688,7 @@
if (num_backends >= MAX_BACKENDS)
- }if ((server_bin = getenv("CUPS_SERVERBIN")) == NULL) @@ -693,58 +687,29 @@ backend = backends + num_backends;
- */
- setuid(normal_user); /* Run as restricted user */
- open("/dev/null", O_RDONLY);
- dup(fds[1]);
- close(fds[1]);
/*
- close(fds[1]);
backend->name = strdup(name);
active_backends ++; |
"str2837-1.3.patch": Index: scheduler/util.c--- scheduler/util.c (revision 7617)
#include "util.h" /* /*
Index: scheduler/util.h--- scheduler/util.h (revision 7617)
-extern int cupsdCompareNames(const char *s, const char *t);
if ((serverbin = getenv("CUPS_SERVERBIN")) == NULL)
while ((dent = cupsDirRead(dir)) != NULL)
@@ -1691,7 +1705,7 @@
@@ -64,7 +63,6 @@ @@ -85,7 +83,8 @@
- */-static FILE * /* O - stdout of backend /
- int fds[2]; /* Pipe file descriptors */
- }
- */
- */
- setuid(uid); /* Run as restricted user */
- open("/dev/null", O_RDONLY);
- dup(fds[1]);
- close(fds[1]);
- }
- */- close(fds[1]);
-/*
|
Version: 1.3.6
CUPS.org User: dsharov
Apple Mac OS X system specific.
While launching driver programs, cups-driverd does not update CFProcessPath environment variable accordingly to point to the actual executable of a driver program.
This make it impossible to use CFBundle API for accessing bundle resources from inside of the driver program in case driver program packaged as a bundle and symbolic link to the bundle's executable is placed at /usr/libexec/cups/driver.
This issue should also affect cups-1.4 currently being developed.
The text was updated successfully, but these errors were encountered: