From 616b64c3627bfee4f4f8541c0b5e6a675c24a643 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 16 Sep 2020 15:40:36 +0200 Subject: s4/torture: use unique filename for torture_samba3_hide() test 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 Reviewed-by: Jeremy Allison --- source4/torture/raw/samba3hide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/torture/raw/samba3hide.c b/source4/torture/raw/samba3hide.c index f980ffceb6d..d28f91e8a86 100644 --- a/source4/torture/raw/samba3hide.c +++ b/source4/torture/raw/samba3hide.c @@ -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; -- cgit v1.2.1