diff options
author | Ralph Boehme <slow@samba.org> | 2020-09-16 15:40:36 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2020-10-02 19:39:43 +0000 |
commit | 616b64c3627bfee4f4f8541c0b5e6a675c24a643 (patch) | |
tree | 6a688c74b2a2ec5f1ed9b60004736cea94f0b99d | |
parent | 176290eb68f57f953821b33130f595d2cdb79089 (diff) | |
download | samba-616b64c3627bfee4f4f8541c0b5e6a675c24a643.tar.gz |
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 <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source4/torture/raw/samba3hide.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |