[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 20:32:25 UTC 2015


            Bug ID: 199850
           Summary: [patch] /usr/sbin/service -e fails if /sbin isn't in
           Product: Base System
           Version: 10.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: glyn at grinstead.org
          Keywords: patch

Created attachment 156221
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=156221&action=edit
Patch service.sh replacing rcorder with /sbin/rcorder

The /usr/sbin/service script uses rcorder without specifying the path. If
called from an environment without /sbin in the path the -e option (and
presumably -r and -R) will fail. Adding /sbin/ to the two references to rcorder
will avoid this. Use of /sbin/sysctl within service already uses this form.

Attached patch against Revision 268098 (stable) which should also apply to
268773 (head).

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

More information about the freebsd-bugs mailing list