Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Dec 2015 19:03:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 205604] filter-path capability for printcap
Message-ID:  <bug-205604-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205604

            Bug ID: 205604
           Summary: filter-path capability for printcap
           Product: Base System
           Version: 10.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: software@bertram-scharpf.de

Created attachment 164640
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=164640&action=edit
The whole patch as an output from git-show

In my /etc/printcap the :if: capability points to a Ruby script.
This script contains the shebang line

  #!/usr/bin/env ruby

After boot the printer daemon lpd has got its environment variable
PATH from /etc/rc. This PATH does not include /usr/local/bin.
Therefore the Ruby executable will not be found and the print
commands fails.

I extended the printcap mechanism by a filter-path capability that
allows to set the PATH variable before exec()ing into the filter.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205604-8>