]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/torture: use unique filename for torture_samba3_hide() test
authorRalph Boehme <slow@samba.org>
Wed, 16 Sep 2020 13:40:36 +0000 (15:40 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 2 Oct 2020 19:39:43 +0000 (19:39 +0000)
The filename "test.txt" is also used by other tests and without O_PATH the file
can't be removed at the end of this tests: open_smb_fname_fsp() fails with
ACCESS_DENIED because the POSIX mode of the file is 0000 and become_root() used
in the #ifndef O_PATH fallback case doesn't work in CI.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/raw/samba3hide.c

index f980ffceb6dc78571cd480762ae1fa5176600b99..d28f91e8a86892d366c10575d00f5fe29f4d9cf7 100644 (file)
@@ -156,7 +156,7 @@ static NTSTATUS smbcli_chmod(struct smbcli_tree *tree, const char *fname,
 
 bool torture_samba3_hide(struct torture_context *torture, struct smbcli_state *cli)
 {
-       const char *fname = "test.txt";
+       const char *fname = "torture_samba3_hide.txt";
        int fnum;
        NTSTATUS status;
        struct smbcli_tree *hideunread;