Date: Fri, 01 May 2015 20:32:25 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 199850] [patch] /usr/sbin/service -e fails if /sbin isn't in PATH Message-ID: <bug-199850-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199850 Bug ID: 199850 Summary: [patch] /usr/sbin/service -e fails if /sbin isn't in PATH 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@FreeBSD.org Reporter: glyn@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199850-8>