cupsfilter PATH typo: filters do not have /bin in their PATH #2908

Closed
michaelrsweet opened this Issue Aug 16, 2008 · 3 comments

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented Aug 16, 2008

Version: 1.3-current
CUPS.org User: ion

The attached patch fixes a bug in scheduler/cupsfilter.c, which causes filters not to have /bin in their PATH.

The bug also concerns 1.3.8, and the patch applies cleanly to it.

Collaborator

michaelrsweet commented Aug 17, 2008

CUPS.org User: mike

Moving to CUPS 1.3...

In the future, please file bug reports that apply to 1.3 against 1.3 - thanks!)

Collaborator

michaelrsweet commented Aug 26, 2008

CUPS.org User: mike

Fixed in Subversion repository.

Collaborator

michaelrsweet commented Aug 26, 2008

"cupsfilter-path-typo.patch":

cupsfilter PATH typo

From: Johan Kiviniemi cups.org@johan.kiviniemi.name

Fix a typo in scheduler/cupsfilter.c, which caused filters not to have /bin

in their PATH.

scheduler/cupsfilter.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scheduler/cupsfilter.c b/scheduler/cupsfilter.c
index f60c284..d387ecf 100644
--- a/scheduler/cupsfilter.c
+++ b/scheduler/cupsfilter.c
@@ -1053,7 +1053,7 @@ read_cupsd_conf(const char filename) / I - File to read */
}

snprintf(line, sizeof(line),

  •       "%s/filter:" CUPS_BINDIR ":" CUPS_SBINDIR ":/bin/usr/bin",
    
  •       "%s/filter:" CUPS_BINDIR ":" CUPS_SBINDIR ":/bin:/usr/bin",
    
    ServerBin);
    set_string(&Path, line);

@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment