svn commit: r220553 - user/dougb/portmaster
Doug Barton
dougb at FreeBSD.org
Tue Apr 12 00:05:01 UTC 2011
Author: dougb
Date: Tue Apr 12 00:05:01 2011
New Revision: 220553
URL: http://svn.freebsd.org/changeset/base/220553
Log:
Fix the problem created by jumbo numeric uids, and simplify
the code in the process.
Modified:
user/dougb/portmaster/portmaster
Modified: user/dougb/portmaster/portmaster
==============================================================================
--- user/dougb/portmaster/portmaster Mon Apr 11 22:01:06 2011 (r220552)
+++ user/dougb/portmaster/portmaster Tue Apr 12 00:05:01 2011 (r220553)
@@ -39,8 +39,8 @@ if [ -z "$PM_PARENT_PID" ]; then
my_environment=`set`
# If we are already root, unset this to avoid potential conflict
- euid=`ps -o uid $$` ; euid=${euid##* }
- [ "$euid" -eq 0 ] && unset PM_SU_CMD PM_SU_VERBOSE
+ euid=`ps -o uid= $$`
+ [ $euid -eq 0 ] && unset PM_SU_CMD PM_SU_VERBOSE
unset euid
fi
More information about the svn-src-user
mailing list