[Bug 205604] filter-path capability for printcap
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Dec 25 19:03:22 UTC 2015
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 at FreeBSD.org
Reporter: software at 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.
More information about the freebsd-bugs
mailing list