Created attachment 15756 [details] log files + strace (root + user) The base.delete.deltest20 fails when running as root, it works as a normal user: $ make -j20 test TESTS="base.delete.*nt4" [..] [1(0)/1 at 0s] samba3.base.delete(nt4_dc) UNEXPECTED(failure): samba3.base.delete.deltest20(nt4_dc) REASON: Exception: Exception: ../../source4/torture/basic/delete.c:1896: Expression `fnum1 == -1' failed: smbcli_open succeeded, should have failed with NT_STATUS_DELETE_PENDING teardown_env(nt4_dc) Steps to manually reproduce: . seltest/devel_env.sh make -j20 testenv SELFTEST_TESTENV=nt4_dc SMBD_OPTIONS=-d10 In the xterm: ./bin/smbtorture $LOADLIST --configfile=$SMB_CONF_PATH --option='fss:sequence timeout=1' --maximum-runtime=$SELFTEST_MAXTIME --basedir=$SELFTEST_TMPDIR --format=subunit --option=torture:progress=no --option=torture:sharedelay=100000 --option=torture:writetimeupdatedelay=500000 --target=samba3 //$SERVER_IP/tmp -U$USERNAME%$PASSWORD base.delete.deltest20
It's a feature. In check_parent_access() we check whether we're running as root and if we are, we skip the check for delete-on-close-set.
Ralph, but then I think we need to check for root in the test and skip it ...
See https://gitlab.com/samba-team/samba/-/merge_requests/1102
(In reply to Andreas Schneider from comment #2) Yeah, good point. There are probably a bunch of other tests that will stumble across the same issue.
Created attachment 15759 [details] patch for 4.12 and 4.11
What about 4.10?
Karolin, could you please apply the patch to 4.12, 4.11 and 4.10. The patch should apply without any problem on all those branches. Thanks!
Pushed to autobuild-v4-{12,11,10}-test.
(In reply to Karolin Seeger from comment #8) Pushed to all branches. Closing out bug report. Thanks!