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)
This commit is contained in:
Florent Thoumie 2006-04-13 08:30:43 +00:00
parent 00a99575e3
commit 7b05b2c434
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157710

View File

@ -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