git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e811b9f
)
make test: try to get a more portable way to get UID and GID
author
Stefan Metzmacher
<metze@samba.org>
Fri, 9 Nov 2007 13:35:58 +0000
(14:35 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 9 Nov 2007 13:36:20 +0000
(14:36 +0100)
metze
source/script/tests/selftest.sh
patch
|
blob
|
history
diff --git
a/source/script/tests/selftest.sh
b/source/script/tests/selftest.sh
index dc9b4c2cb8cbeb0d98a1d4eb9b3cdf9d95d02c99..130ce339bf3cb83ef75ecb7b4ee50b49bec980a5 100755
(executable)
--- a/
source/script/tests/selftest.sh
+++ b/
source/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`/../.."