Date: Fri, 01 May 2015 22:16:11 +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-hJUwABhdc7@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-199850-8@https.bugs.freebsd.org/bugzilla/> References: <bug-199850-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199850 --- Comment #2 from Glyn Grinstead <glyn@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199850-8-hJUwABhdc7>