r4391: bring the default ACL inline with what w2k3 uses
[samba.git] / source4 / ntvfs / posix / pvfs_fileinfo.c
index 888d5f78c01040fa4da052d700c6807357adc132..fc60aa6e89c5c4758657816665c2546dd2cb3082 100644 (file)
@@ -99,10 +99,10 @@ NTSTATUS pvfs_fill_dos_info(struct pvfs_state *pvfs, struct pvfs_filename *name,
 */
 mode_t pvfs_fileperms(struct pvfs_state *pvfs, uint32 attrib)
 {
-       mode_t mode = S_IRUSR | S_IRGRP | S_IROTH;
+       mode_t mode = S_IRUSR;
 
        if (attrib & FILE_ATTRIBUTE_DIRECTORY) {
-               mode |= S_IXUSR | S_IXGRP | S_IXOTH;
+               mode |= S_IXUSR;
        }
 
        if (!(attrib & FILE_ATTRIBUTE_READONLY) ||