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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 3 20:34:32 UTC 2015


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

Jilles Tjoelker <jilles at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jilles at FreeBSD.org

--- Comment #4 from Jilles Tjoelker <jilles at FreeBSD.org> ---
Although this patch is not directly wrong, I'm not sure about the use of the
bin vs sbin distinction. In most cases, both bin and sbin are in PATH, and
there seems little benefit in removing sbin.

Where does the PATH without /sbin come from, in your case? Perhaps we should
add /sbin and /usr/sbin there instead of trying to make the world work without
/sbin and /usr/sbin in PATH. One such definition is _PATH_DEFPATH in
include/paths.h.

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


More information about the freebsd-bugs mailing list