From 67bd7a7cb9589b0db874323aa87246a997fcf922 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 26 Oct 2004 07:03:12 +0000 Subject: r3246: new files should get created with FILE_ATTRIBUTE_ARCHIVE (This used to be commit 090574c6982f703b124a5a123d2199be8f5b3968) --- source4/ntvfs/posix/pvfs_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/ntvfs/posix/pvfs_open.c b/source4/ntvfs/posix/pvfs_open.c index ffd1520b07..f533a36637 100644 --- a/source4/ntvfs/posix/pvfs_open.c +++ b/source4/ntvfs/posix/pvfs_open.c @@ -311,7 +311,7 @@ static NTSTATUS pvfs_create_file(struct pvfs_state *pvfs, 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); -- cgit