From 515eef851fa88e69f839f0c31cb9f258d3fe36d5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 9 Nov 2007 14:35:58 +0100 Subject: make test: try to get a more portable way to get UID and GID metze (This used to be commit 0dc2d7ec010610c4bdab8eb6d488295a0259fbc9) --- source3/script/tests/selftest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') 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`/../.." -- cgit