1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r16874: query all information

metze
(This used to be commit 0ff9c57757)
This commit is contained in:
Stefan Metzmacher 2006-07-08 11:05:24 +00:00 committed by Gerald (Jerry) Carter
parent 7c810db7da
commit 1fcd8c8a90

View File

@ -160,7 +160,7 @@ static NTSTATUS smb2_create_complex(struct smb2_tree *tree, const char *fname,
}
/* make sure all the timestamps aren't the same */
fileinfo.generic.level = RAW_FILEINFO_BASIC_INFORMATION;
fileinfo.generic.level = RAW_FILEINFO_SMB2_ALL_INFORMATION;
fileinfo.generic.in.file.handle = *handle;
status = smb2_getinfo_file(tree, tree, &fileinfo);
@ -171,7 +171,7 @@ static NTSTATUS smb2_create_complex(struct smb2_tree *tree, const char *fname,
}
#define CHECK_TIME(field) do {\
if (setfile.basic_info.in.field != fileinfo.basic_info.out.field) { \
if (setfile.basic_info.in.field != fileinfo.all_info2.out.field) { \
printf("(%s) " #field " not setup correctly: %s(%llu) => %s(%llu)\n", \
__location__, \
nt_time_string(tree, setfile.basic_info.in.field), \