Subject: rc.subr on Linux
To: None <tech-pkg@netbsd.org>
From: Louis Guillaume <lguillaume@berklee.edu>
List: tech-pkg
Date: 07/03/2007 19:05:46
Hi,

I'm running into an issue on RedHat: rc.subr has _RCCMD_su="/usr/bin/su"
but su on Linux is in /bin/su. Same issue appears to be there on
Debian/Ubuntu, but I don't have a Slackware machine or other Linuxes to
look at.

I looked for any other issues with rc.subr in general and found none.
Here's a patch...

--- files/rc.subr.orig  2007-07-03 18:49:06.000000000 -0400
+++ files/rc.subr       2007-07-03 18:49:28.000000000 -0400
@@ -99,6 +99,7 @@
                _RCCMD_nice=$(which nice)
 #              _RCCMD_rcs="/usr/bin/rcs"               # not in
Slackware 8.1
 #              _RCCMD_systrace="/bin/systrace"         # not in
Slackware 8.1
+               _RCCMD_su="/bin/su"
                _RCARG_ps="ax"
                ;;
 esac