Skip to content

Commit

Permalink
selftest: fix acl_xattr test: sn-devel unreliable gid
Browse files Browse the repository at this point in the history
The "nt_affects_chgrp" kept failing in a full autobuild on sn-devel
because the actual gid of the created file as returned by smbclient -c
getfacl was reliably the unix gid of my account. It should have been the
mapped domusers group for the primary users "Domain Users"
group. Running the test individually or even the full set of
"samba3.blackbox" tests didn't trigger the error.

Looks like an issue with vfs_fake_acls and vfs_xattr_tdb, but I wasn't
able to track it down. As the test only really want to ensure that
smbcacls -G set the gid to the requested value, just remove the check
for the actual initial gid.

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

Signed-off-by: Ralph Boehme <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
slowfranklin authored and jrasamba committed Oct 9, 2017
1 parent 1fabe25 commit ea0ea82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source3/script/tests/test_acl_xattr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ nt_affects_chgrp() {
af_actual=$(echo "$af_actual" | sed -rn 's/^# group: (.*)/\1/p')
echo "before: $b4_actual"
echo "after: $af_actual"
test "$b4_expected" = "$b4_actual" && test "$af_expected" = "$af_actual"
test "$af_expected" != "$b4_actual" && test "$af_expected" = "$af_actual"
}

testit "setup remote file tmp" setup_remote_file tmp
Expand Down

0 comments on commit ea0ea82

Please sign in to comment.