summaryrefslogtreecommitdiff
path: root/source3/script/tests/selftest.sh
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-09 14:35:58 +0100
committerStefan Metzmacher <metze@samba.org>2007-11-09 14:36:20 +0100
commit515eef851fa88e69f839f0c31cb9f258d3fe36d5 (patch)
treec287ce40b4609150b484f7a69458c17fbf50db20 /source3/script/tests/selftest.sh
parentc402ec1bd84ca09ba9e0b1bd122bfc34fb089772 (diff)
downloadsamba-515eef851fa88e69f839f0c31cb9f258d3fe36d5.tar.gz
samba-515eef851fa88e69f839f0c31cb9f258d3fe36d5.tar.bz2
samba-515eef851fa88e69f839f0c31cb9f258d3fe36d5.zip
make test: try to get a more portable way to get UID and GID
metze (This used to be commit 0dc2d7ec010610c4bdab8eb6d488295a0259fbc9)
Diffstat (limited to 'source3/script/tests/selftest.sh')
-rwxr-xr-xsource3/script/tests/selftest.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/script/tests/selftest.sh b/source3/script/tests/selftest.sh
index dc9b4c2cb8..130ce339bf 100755
--- a/source3/script/tests/selftest.sh
+++ b/source3/script/tests/selftest.sh
@@ -30,8 +30,8 @@ export TORTURE_MAXTIME
SERVER=localhost2
SERVER_IP=127.0.0.2
USERNAME=`PATH=/usr/ucb:$PATH whoami`
-USERID=`PATH=/usr/ucb:$PATH id -u`
-GROUPID=`PATH=/usr/ucb:$PATH id -g`
+USERID=`PATH=/usr/ucb:$PATH id | cut -d ' ' -f1 | sed -e 's/uid=\([0-9]*\).*/\1/g'`
+GROUPID=`PATH=/usr/ucb:$PATH id | cut -d ' ' -f2 | sed -e 's/gid=\([0-9]*\).*/\1/g'`
PASSWORD=test
SRCDIR="`dirname $0`/../.."