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:
parent
3d5f7f4ac4
commit
090574c698
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user