summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-09-16 07:15:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:12 -0500
commit2082695e2e9d04c4a49cf330e9ab9ecff20dbe1f (patch)
treec295d37e1205ce7e99010e10c5168d3616632cb9 /source4/smb_server
parenta22221014ccc1d32ee2ce4c634877391b214462c (diff)
downloadsamba-2082695e2e9d04c4a49cf330e9ab9ecff20dbe1f.tar.gz
samba-2082695e2e9d04c4a49cf330e9ab9ecff20dbe1f.tar.bz2
samba-2082695e2e9d04c4a49cf330e9ab9ecff20dbe1f.zip
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)
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/trans2.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source4/smb_server/trans2.c b/source4/smb_server/trans2.c
index d4499187f8..694cd969ec 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;