summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-06-11 07:01:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:58 -0500
commit68ff6b126254fc74090bc00b9c0cd586985dca79 (patch)
treef3455544af9aca476c5b527aca8af9c2e9966ef7 /source4
parent4233f18a3100905e2cc25978230b5f94f8f8077e (diff)
downloadsamba-68ff6b126254fc74090bc00b9c0cd586985dca79.tar.gz
samba-68ff6b126254fc74090bc00b9c0cd586985dca79.tar.bz2
samba-68ff6b126254fc74090bc00b9c0cd586985dca79.zip
r7487: check both files before and after setting the attribs on file1
metze (This used to be commit 376c0560e0cb453fa8a378ff2983b34310956ae8)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/raw/rename.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/torture/raw/rename.c b/source4/torture/raw/rename.c
index 42f5903508..f4737920fa 100644
--- a/source4/torture/raw/rename.c
+++ b/source4/torture/raw/rename.c
@@ -285,6 +285,13 @@ static BOOL test_ntrename(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
CHECK_VALUE(finfo.all_info.out.nlink, 1);
CHECK_VALUE(finfo.all_info.out.attrib, FILE_ATTRIBUTE_NORMAL);
+ finfo.generic.level = RAW_FILEINFO_ALL_INFO;
+ finfo.generic.in.fname = fname2;
+ status = smb_raw_pathinfo(cli->tree, mem_ctx, &finfo);
+ CHECK_STATUS(status, NT_STATUS_OK);
+ CHECK_VALUE(finfo.all_info.out.nlink, 1);
+ CHECK_VALUE(finfo.all_info.out.attrib, FILE_ATTRIBUTE_NORMAL);
+
torture_set_file_attribute(cli->tree, fname1, FILE_ATTRIBUTE_SYSTEM);
finfo.generic.level = RAW_FILEINFO_ALL_INFO;