summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_setinfo.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-03-29 11:08:12 +0100
committerJeremy Allison <jra@samba.org>2019-04-01 17:58:16 +0000
commitaac203907f1be6e58c1ff2dc7c55f602e755ddd3 (patch)
tree3d3bf0b8eed6c2ef3b5140f50d4762caf6cfab97 /source3/smbd/smb2_setinfo.c
parentf1a1c300e192d43f5c9faf9450ffbf16341a2661 (diff)
downloadsamba-aac203907f1be6e58c1ff2dc7c55f602e755ddd3.tar.gz
libsmb: Rename InfoType from [MS-SMB2] according to the spec
This makes it easier to find this via internet search Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/smb2_setinfo.c')
-rw-r--r--source3/smbd/smb2_setinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/smb2_setinfo.c b/source3/smbd/smb2_setinfo.c
index 92e06f8c7d2..7fdcbd7a8d2 100644
--- a/source3/smbd/smb2_setinfo.c
+++ b/source3/smbd/smb2_setinfo.c
@@ -389,7 +389,7 @@ static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
}
switch (in_info_type) {
- case 0x01:/* SMB2_SETINFO_FILE */
+ case SMB2_0_INFO_FILE:
{
uint16_t file_info_level;
char *data;
@@ -530,7 +530,7 @@ static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
break;
}
- case 0x02:/* SMB2_SETINFO_FS */
+ case SMB2_0_INFO_FILESYSTEM:
{
uint16_t file_info_level = in_file_info_class + 1000;
@@ -548,7 +548,7 @@ static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
break;
}
- case 0x03:/* SMB2_SETINFO_SECURITY */
+ case SMB2_0_INFO_SECURITY:
{
if (!CAN_WRITE(conn)) {
tevent_req_nterror(req, NT_STATUS_ACCESS_DENIED);
@@ -567,7 +567,7 @@ static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
break;
}
- case 0x04:/* SMB2_SETINFO_QUOTA */
+ case SMB2_0_INFO_QUOTA:
{
#ifdef HAVE_SYS_QUOTAS
struct file_quota_information info = {0};