[Bug 199850] [patch] /usr/sbin/service -e fails if /sbin isn't in PATH

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 1 22:16:11 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199850

--- Comment #2 from Glyn Grinstead <glyn at grinstead.org> ---
(In reply to Mateusz Guzik from comment #1)

That seems to require either adding a PATH statement to the top or patching
both service and rc.subr (find_local_scripts_new) to include the fully
qualified path to grep. 

rc.subr has other functions which appear to assume a path will have been set,
e.g. mount_critical_filesystems uses 'mount' not '/sbin/mount'. Would it be
sensible to attempt to make all of rc.subr safe to use without a path or should
it be left as the risk of breaking something is too great? My first pass at
this found about 30 instances to consider.

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


More information about the freebsd-bugs mailing list