summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-06-16 08:39:03 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-06-16 09:05:31 +0200
commit75e77f9fa023d81a57e7913bcbd712eae7a677b1 (patch)
tree16a24314aa86c2f9a20a713826baee890f2b7379 /source4/ntvfs/posix
parent9ba10877aa558c016e2a40f209d1eaf694e47965 (diff)
downloadsamba-75e77f9fa023d81a57e7913bcbd712eae7a677b1.tar.gz
samba-75e77f9fa023d81a57e7913bcbd712eae7a677b1.tar.bz2
samba-75e77f9fa023d81a57e7913bcbd712eae7a677b1.zip
s4:ntvfs subsystems - rework it using concrete enum values
This changes commit 260bc987b00b3fff6c9b99211627b14e9bd0789a to comply with metze's plans.
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r--source4/ntvfs/posix/pvfs_qfileinfo.c6
-rw-r--r--source4/ntvfs/posix/pvfs_search.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/pvfs_qfileinfo.c b/source4/ntvfs/posix/pvfs_qfileinfo.c
index 515819b6ee..9284306753 100644
--- a/source4/ntvfs/posix/pvfs_qfileinfo.c
+++ b/source4/ntvfs/posix/pvfs_qfileinfo.c
@@ -331,10 +331,14 @@ static NTSTATUS pvfs_map_fileinfo(struct pvfs_state *pvfs,
NT_STATUS_HAVE_NO_MEMORY(info->all_info2.out.fname.s);
return NT_STATUS_OK;
- default:
+ case RAW_FILEINFO_GENERIC:
+ case RAW_FILEINFO_UNIX_BASIC:
+ case RAW_FILEINFO_UNIX_INFO2:
+ case RAW_FILEINFO_UNIX_LINK:
return NT_STATUS_INVALID_LEVEL;
}
+ return NT_STATUS_INVALID_LEVEL;
}
/*
diff --git a/source4/ntvfs/posix/pvfs_search.c b/source4/ntvfs/posix/pvfs_search.c
index 668f8d741e..893f55c5ac 100644
--- a/source4/ntvfs/posix/pvfs_search.c
+++ b/source4/ntvfs/posix/pvfs_search.c
@@ -220,9 +220,13 @@ static NTSTATUS fill_search_info(struct pvfs_state *pvfs,
file->id_both_directory_info.name.s = fname;
return NT_STATUS_OK;
- default:
+ case RAW_SEARCH_DATA_GENERIC:
+ case RAW_SEARCH_DATA_UNIX_INFO:
+ case RAW_SEARCH_DATA_UNIX_INFO2:
return NT_STATUS_INVALID_LEVEL;
}
+
+ return NT_STATUS_INVALID_LEVEL;
}