summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2012-09-27 22:09:23 -0700
committerChristian Ambach <ambi@samba.org>2012-10-12 13:37:37 +0200
commitbddd1182ea44875f28e12cf15fd07a86f43d8716 (patch)
tree62fab96d05e82aee88b9cd3461bdef261920f849
parent6d1be1caf925f80badabcbca3a2676398647f4a3 (diff)
downloadsamba-bddd1182ea44875f28e12cf15fd07a86f43d8716.tar.gz
samba-bddd1182ea44875f28e12cf15fd07a86f43d8716.tar.bz2
samba-bddd1182ea44875f28e12cf15fd07a86f43d8716.zip
s3:smb2_getinfo ensure proper error for not yet present quota support
non-existing quota support needs to be signaled by NT_STATUS_NOT_SUPPORTED, not NT_STATUS_INVALID_PARAMETER Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Fri Oct 12 13:37:37 CEST 2012 on sn-devel-104
-rw-r--r--source3/smbd/smb2_getinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/smb2_getinfo.c b/source3/smbd/smb2_getinfo.c
index 0f4ed29164..33cee9910c 100644
--- a/source3/smbd/smb2_getinfo.c
+++ b/source3/smbd/smb2_getinfo.c
@@ -482,6 +482,10 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx,
break;
}
+ case 0x04: /* SMB2_0_INFO_QUOTA */
+ tevent_req_nterror(req, NT_STATUS_NOT_SUPPORTED);
+ return tevent_req_post(req, ev);
+
default:
DEBUG(10,("smbd_smb2_getinfo_send: "
"unknown in_info_type of %u "