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

tridge at samba.org tridge at samba.org
Tue Oct 26 07:03:13 GMT 2004


Author: tridge
Date: 2004-10-26 07:03:12 +0000 (Tue, 26 Oct 2004)
New Revision: 3246

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/ntvfs/posix&rev=3246&nolog=1

Log:
new files should get created with FILE_ATTRIBUTE_ARCHIVE

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


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c	2004-10-26 07:02:30 UTC (rev 3245)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c	2004-10-26 07:03:12 UTC (rev 3246)
@@ -311,7 +311,7 @@
 		return NT_STATUS_TOO_MANY_OPENED_FILES;
 	}
 
-	mode = pvfs_fileperms(pvfs, io->ntcreatex.in.file_attr);
+	mode = pvfs_fileperms(pvfs, io->ntcreatex.in.file_attr | FILE_ATTRIBUTE_ARCHIVE);
 
 	/* create the file */
 	fd = open(name->full_name, flags | O_CREAT | O_EXCL, mode);



More information about the samba-cvs mailing list