summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2006-04-13 08:30:43 +0000
committerflz <flz@FreeBSD.org>2006-04-13 08:30:43 +0000
commit45d238b51a0d0bd175797994a9e2e0767cf14fd1 (patch)
treea2bb643bfb223821f0019014588ce30c4fd63e3d /etc
parentf7d1aac02aecad4cab6a40b40fcd076b442daeef (diff)
downloadFreeBSD-src-45d238b51a0d0bd175797994a9e2e0767cf14fd1.zip
FreeBSD-src-45d238b51a0d0bd175797994a9e2e0767cf14fd1.tar.gz
Use ps true power instead of tr/tail which aren't available early enough.
PR: conf/95654 Submitted by: Rong-En Fan <rafan@infor.org> Noticed/Fix by: many people on freebsd-current@ Approved by: cperciva (mentor)
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index 20eae17..6461351 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -54,7 +54,7 @@ SYSCTL_N="${SYSCTL} -n"
CMD_OSTYPE="${SYSCTL_N} kern.ostype"
OSTYPE=`${CMD_OSTYPE}`
ID="/usr/bin/id"
-JID=`ps -p $$ -o jid | tail -1 | tr -d ' '`
+JID=`ps -p $$ -o jid=`
IDCMD="if [ -x $ID ]; then $ID -un; fi"
case ${OSTYPE} in
OpenPOWER on IntegriCloud