1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

r3246: new files should get created with FILE_ATTRIBUTE_ARCHIVE

This commit is contained in:
Andrew Tridgell 2004-10-26 07:03:12 +00:00 committed by Gerald (Jerry) Carter
parent 3d5f7f4ac4
commit 090574c698

View File

@ -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);