mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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>
This commit is contained in:
parent
176290eb68
commit
616b64c362
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user