tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Patch for rc.subr to make it work with QNX, too
On Wed, Apr 23, 2008 at 09:58:42AM -0400, Sean Boudreau wrote:
> You can map 'whoami' -> 'id -un' on QNX.
The attached patch works?
Joerg
Index: rc.subr
===================================================================
RCS file: /data/repo/netbsd/pkgsrc/pkgtools/rc.subr/files/rc.subr,v
retrieving revision 1.7
diff -u -p -r1.7 rc.subr
--- rc.subr 23 Apr 2008 11:54:54 -0000 1.7
+++ rc.subr 23 Apr 2008 14:22:32 -0000
@@ -106,7 +106,7 @@ case $_osname in
# _RCCMD_ci="/usr/bin/ci" # not in QNX
# _RCCMD_co="/usr/bin/co" # not in QNX
# _RCCMD_systrace="/bin/systrace" # not in QNX
-# _RCCMD_whoami="/usr/ucb/whoami" # not in QNX
+ _RCCMD_whoami="/usr/bin/id -un"
_RCARG_psformat="-o pid,comm"
_RCARG_ps="-ef"
_RCARG_su=""
Home |
Main Index |
Thread Index |
Old Index