summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/pvfs_util.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-22 08:17:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:59 -0500
commitdd7862cb6aaef40b848eb96fb4020c492a313ec8 (patch)
treee5e3518079c3dfe6a10bcd43413c4f69a3d29dae /source4/ntvfs/posix/pvfs_util.c
parentc9d96e9c44eefb6107bf4632ae7a5f43035a957d (diff)
downloadsamba-dd7862cb6aaef40b848eb96fb4020c492a313ec8.tar.gz
samba-dd7862cb6aaef40b848eb96fb4020c492a313ec8.tar.bz2
samba-dd7862cb6aaef40b848eb96fb4020c492a313ec8.zip
r2503: the RAW-SEARCH test now mostly passes against the posix backend
(This used to be commit 9710f24b1fd103d5656c9585cdfed96449cf9f97)
Diffstat (limited to 'source4/ntvfs/posix/pvfs_util.c')
-rw-r--r--source4/ntvfs/posix/pvfs_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_util.c b/source4/ntvfs/posix/pvfs_util.c
index 2524261245..3c65453798 100644
--- a/source4/ntvfs/posix/pvfs_util.c
+++ b/source4/ntvfs/posix/pvfs_util.c
@@ -51,6 +51,9 @@ NTSTATUS pvfs_map_errno(struct pvfs_state *pvfs, int unix_errno)
*/
BOOL pvfs_match_attrib(struct pvfs_state *pvfs, struct pvfs_filename *name, uint32_t attrib)
{
- /* TODO: add attribute conversion */
+ if ((name->dos.attrib & ~attrib) &
+ (FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_DIRECTORY|FILE_ATTRIBUTE_SYSTEM)) {
+ return False;
+ }
return True;
}