git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3/smbd: Fix error code for unsupported SET_INFO requests
[sfrench/samba-autobuild/.git]
/
source3
/
smbd
/
trans2.c
diff --git
a/source3/smbd/trans2.c
b/source3/smbd/trans2.c
index dbad71be3b759ef8109f9f5da21f60d5e942e36d..512918efc899615d88d873d113ea953450724ec7 100644
(file)
--- a/
source3/smbd/trans2.c
+++ b/
source3/smbd/trans2.c
@@
-8541,6
+8541,11
@@
NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn,
break;
}
+ /* [MS-SMB2] 3.3.5.21.1 states we MUST fail with STATUS_NOT_SUPPORTED. */
+ case SMB_FILE_VALID_DATA_LENGTH_INFORMATION:
+ case SMB_FILE_SHORT_NAME_INFORMATION:
+ return NT_STATUS_NOT_SUPPORTED;
+
/*
* CIFS UNIX extensions.
*/