diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-22 08:17:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:59 -0500 |
commit | dd7862cb6aaef40b848eb96fb4020c492a313ec8 (patch) | |
tree | e5e3518079c3dfe6a10bcd43413c4f69a3d29dae /source4/ntvfs/posix/pvfs_fileinfo.c | |
parent | c9d96e9c44eefb6107bf4632ae7a5f43035a957d (diff) | |
download | samba-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_fileinfo.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_fileinfo.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_fileinfo.c b/source4/ntvfs/posix/pvfs_fileinfo.c index c5a3a1c666..be559cf179 100644 --- a/source4/ntvfs/posix/pvfs_fileinfo.c +++ b/source4/ntvfs/posix/pvfs_fileinfo.c @@ -114,6 +114,15 @@ static uint32_t dos_mode_from_stat(struct pvfs_state *pvfs, struct stat *st) result |= FILE_ATTRIBUTE_SPARSE; } #endif + + if (!(result & + (FILE_ATTRIBUTE_READONLY| + FILE_ATTRIBUTE_ARCHIVE| + FILE_ATTRIBUTE_SYSTEM| + FILE_ATTRIBUTE_HIDDEN| + FILE_ATTRIBUTE_DIRECTORY))) { + result |= FILE_ATTRIBUTE_NORMAL; + } return result; } |