diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-05-28 20:06:48 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-05-28 20:06:48 +1000 |
commit | 1eabf8155486d007a69667175ae7f6bebc440122 (patch) | |
tree | 29ca9aa56893e030625b3bf4aa63724823e46333 /source4/torture | |
parent | f7bf79043e664b83e62dae6ea187b5c019968d28 (diff) | |
download | samba-1eabf8155486d007a69667175ae7f6bebc440122.tar.gz samba-1eabf8155486d007a69667175ae7f6bebc440122.tar.bz2 samba-1eabf8155486d007a69667175ae7f6bebc440122.zip |
check that we can't change a file to a directory
(This used to be commit e013ada415ebb25e925f715791757330ba003b43)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/smb2/setinfo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/smb2/setinfo.c b/source4/torture/smb2/setinfo.c index 685bb5a47b..7a912b4989 100644 --- a/source4/torture/smb2/setinfo.c +++ b/source4/torture/smb2/setinfo.c @@ -175,6 +175,10 @@ bool torture_smb2_setinfo(struct torture_context *torture) CHECK_CALL(BASIC_INFORMATION, NT_STATUS_OK); CHECK_VALUE(SMB2_ALL_INFORMATION, all_info2, attrib, FILE_ATTRIBUTE_HIDDEN); + printf("can't change a file to a directory\n"); + sfinfo.basic_info.in.attrib = FILE_ATTRIBUTE_DIRECTORY; + CHECK_CALL(BASIC_INFORMATION, NT_STATUS_INVALID_PARAMETER); + printf("restore attribute\n"); sfinfo.basic_info.in.attrib = FILE_ATTRIBUTE_NORMAL; CHECK_CALL(BASIC_INFORMATION, NT_STATUS_OK); |