[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-274-g0dc2d7e

Stefan Metzmacher metze at samba.org
Fri Nov 9 13:37:04 GMT 2007


The branch, v3-2-test has been updated
       via  0dc2d7ec010610c4bdab8eb6d488295a0259fbc9 (commit)
      from  e811b9f3bbf614f76e628755dafd358769b8a58b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 0dc2d7ec010610c4bdab8eb6d488295a0259fbc9
Author: Stefan Metzmacher <metze at samba.org>
Date:   Fri Nov 9 14:35:58 2007 +0100

    make test: try to get a more portable way to get UID and GID
    
    metze

-----------------------------------------------------------------------

Summary of changes:
 source/script/tests/selftest.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/script/tests/selftest.sh b/source/script/tests/selftest.sh
index dc9b4c2..130ce33 100755
--- 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`/../.."


-- 
Samba Shared Repository


More information about the samba-cvs mailing list