selftest: fix acl_xattr test: group, not user
authorRalph Boehme <slow@samba.org>
Sun, 8 Oct 2017 09:13:46 +0000 (11:13 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 9 Oct 2017 21:01:17 +0000 (23:01 +0200)
In nt_affects_chgrp() check for domadmins *group*, not user. This didn't
trigger an error as nt_affects_chgrp() isn't actually called, see next
commit.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=7933

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/script/tests/test_acl_xattr.sh

index 9697f06a43b7042aeb5732dd3b3985187dd97630..bc3326cf91908e77837d556a2bc7a165a9746eee 100755 (executable)
@@ -100,8 +100,8 @@ nt_affects_chgrp() {
     b4_expected=$(echo "$b4_expected" | awk -F: '{print $3}')
     echo "$b4_expected"
 
-    echo -n "determining uid of domadmins..."
-    af_expected=$(getent passwd domadmins) || exit 1
+    echo -n "determining gid of domadmins..."
+    af_expected=$(getent group domadmins) || exit 1
     af_expected=$(echo "$af_expected" | awk -F: '{print $3}')
     echo "$af_expected"