From 2082695e2e9d04c4a49cf330e9ab9ecff20dbe1f Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 16 Sep 2005 07:15:40 +0000 Subject: [PATCH] r10256: Fix some unhandled enumeration warnings. There's one still left, RAW_SEARCH_UNIX_INFO find_fill_info(), which I think is a bug. (This used to be commit 5f1cd6382cd90b1b33f645b1b2a469f4de4f42b9) --- source4/smb_server/trans2.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source4/smb_server/trans2.c b/source4/smb_server/trans2.c index d4499187f84..694cd969ecd 100644 --- a/source4/smb_server/trans2.c +++ b/source4/smb_server/trans2.c @@ -740,6 +740,10 @@ static NTSTATUS trans2_fileinfo_fill(struct smbsrv_request *req, struct smb_tran } } return NT_STATUS_OK; + + case RAW_FILEINFO_UNIX_BASIC: + case RAW_FILEINFO_UNIX_LINK: + return NT_STATUS_INVALID_LEVEL; } return NT_STATUS_INVALID_LEVEL; @@ -919,6 +923,17 @@ static NTSTATUS trans2_parse_sfileinfo(struct smbsrv_request *req, CHECK_MIN_BLOB_SIZE(blob, 4); st->mode_information.in.mode = IVAL(blob->data, 0); return NT_STATUS_OK; + + case RAW_SFILEINFO_UNIX_BASIC: + case RAW_SFILEINFO_UNIX_LINK: + case RAW_SFILEINFO_UNIX_HLINK: + case RAW_SFILEINFO_1023: + case RAW_SFILEINFO_1025: + case RAW_SFILEINFO_1029: + case RAW_SFILEINFO_1032: + case RAW_SFILEINFO_1039: + case RAW_SFILEINFO_1040: + return NT_STATUS_INVALID_LEVEL; } return NT_STATUS_INVALID_LEVEL;