Author: tridge
Date: 2004-11-14 09:16:03 +0000 (Sun, 14 Nov 2004)
New Revision: 3729

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3729

Log:
permission changes on directories always include the FILE_ATTRIBUTE_DIRECTORY 
bit

Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c    2004-11-14 
03:54:48 UTC (rev 3728)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c    2004-11-14 
09:16:03 UTC (rev 3729)
@@ -471,6 +471,7 @@
        }
 
        /* possibly change the attribute */
+       newstats.dos.attrib |= (name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY);
        if (newstats.dos.attrib != name->dos.attrib) {
                mode_t mode = pvfs_fileperms(pvfs, newstats.dos.attrib);
                if (chmod(name->full_name, mode) == -1) {

Reply via email to