diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-06-08 19:00:18 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-06-09 10:53:36 +0200 |
commit | 260bc987b00b3fff6c9b99211627b14e9bd0789a (patch) | |
tree | a2444c89bc197c13950abc025764d72dcdebb621 /source4/ntvfs/posix/pvfs_qfileinfo.c | |
parent | 40ea52a267c7362e206ac83ff6d1fc586b05e2f4 (diff) | |
download | samba-260bc987b00b3fff6c9b99211627b14e9bd0789a.tar.gz samba-260bc987b00b3fff6c9b99211627b14e9bd0789a.tar.xz samba-260bc987b00b3fff6c9b99211627b14e9bd0789a.zip |
s4:ntvfs subsystem - quiet enum warnings
Simply return "NT_STATUS_INVALID_LEVEL" for unknown types of requests.
Reviewed-by: Tridge
Diffstat (limited to 'source4/ntvfs/posix/pvfs_qfileinfo.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_qfileinfo.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/ntvfs/posix/pvfs_qfileinfo.c b/source4/ntvfs/posix/pvfs_qfileinfo.c index e54fc2d669..515819b6ee 100644 --- a/source4/ntvfs/posix/pvfs_qfileinfo.c +++ b/source4/ntvfs/posix/pvfs_qfileinfo.c @@ -149,9 +149,6 @@ static NTSTATUS pvfs_map_fileinfo(struct pvfs_state *pvfs, int fd) { switch (info->generic.level) { - case RAW_FILEINFO_GENERIC: - return NT_STATUS_INVALID_LEVEL; - case RAW_FILEINFO_GETATTR: info->getattr.out.attrib = name->dos.attrib; info->getattr.out.size = name->st.st_size; @@ -333,9 +330,11 @@ static NTSTATUS pvfs_map_fileinfo(struct pvfs_state *pvfs, name->original_name); NT_STATUS_HAVE_NO_MEMORY(info->all_info2.out.fname.s); return NT_STATUS_OK; + + default: + return NT_STATUS_INVALID_LEVEL; } - return NT_STATUS_INVALID_LEVEL; } /* |