[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Tue Mar 9 14:15:15 MST 2010


The branch, master has been updated
       via  9adbba6... Allow "make test" to complete as root. Obviously only safe on tightly controlled developer machines. Jeremy.
      from  25452a2... s3: Fix a NULL pointer dereference

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 9adbba6fb9404bb7f6d88cf58e7d5ce06fe73b0e
Author: Jeremy Allison <jra at samba.org>
Date:   Tue Mar 9 13:14:18 2010 -0800

    Allow "make test" to complete as root. Obviously only safe on tightly
    controlled developer machines.
    Jeremy.

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

Summary of changes:
 source3/script/tests/selftest.sh |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/script/tests/selftest.sh b/source3/script/tests/selftest.sh
index 09f7dc8..9994e47 100755
--- a/source3/script/tests/selftest.sh
+++ b/source3/script/tests/selftest.sh
@@ -302,6 +302,7 @@ EOF
 ## create a test account
 ##
 
+if [ "$USERID" != 0 ]; then
 cat >$NSS_WRAPPER_PASSWD<<EOF
 root:x:65533:65532:root gecos:$PREFIX_ABS:/bin/false
 nobody:x:65534:65533:nobody gecos:$PREFIX_ABS:/bin/false
@@ -314,6 +315,21 @@ nogroup:x:65534:nobody
 root:x:65532:
 $USERNAME-group:x:$GROUPID:
 EOF
+else
+##
+## Running as root...
+##
+cat >$NSS_WRAPPER_PASSWD<<EOF
+$USERNAME:x:$USERID:$GROUPID:$USERNAME gecos:$PREFIX_ABS:/bin/false
+nobody:x:65534:65533:nobody gecos:$PREFIX_ABS:/bin/false
+EOF
+
+cat >$NSS_WRAPPER_GROUP<<EOF
+$USERNAME-group:x:$GROUPID:
+nobody:x:65533:
+nogroup:x:65534:nobody
+EOF
+fi
 
 MAKE_TEST_BINARY="bin/smbpasswd"
 export MAKE_TEST_BINARY


-- 
Samba Shared Repository


More information about the samba-cvs mailing list