svn commit: samba r16706 - in branches/SAMBA_4_0/source/ntvfs/posix: .

metze at samba.org metze at samba.org
Fri Jun 30 08:16:59 GMT 2006


Author: metze
Date: 2006-06-30 08:16:59 +0000 (Fri, 30 Jun 2006)
New Revision: 16706

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

Log:
for RAW_SFILEINFO_SETATTR attrib == 0 means set it to FILE_ATTRIB_NORMAL
and attrib == FILE_ATTRIB_NORMAL means no change...

but for RAW_SFILEINFO_BASIC_INFORMATION attrib == 0 means no change

metze
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	2006-06-29 23:11:07 UTC (rev 16705)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c	2006-06-30 08:16:59 UTC (rev 16706)
@@ -493,7 +493,9 @@
 		if (!null_time(info->setattr.in.write_time)) {
 			unix_to_nt_time(&newstats.dos.write_time, info->setattr.in.write_time);
 		}
-		if (info->setattr.in.attrib != FILE_ATTRIBUTE_NORMAL) {
+		if (info->setattr.in.attrib == 0) {
+			newstats.dos.attrib = FILE_ATTRIBUTE_NORMAL;
+		} else if (info->setattr.in.attrib != FILE_ATTRIBUTE_NORMAL) {
 			newstats.dos.attrib = info->setattr.in.attrib;
 		}
   		break;



More information about the samba-cvs mailing list