diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-26 07:03:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:04:45 -0500 |
commit | 67bd7a7cb9589b0db874323aa87246a997fcf922 (patch) | |
tree | ef4d179e35f98468549a40c4b0ea924be06b81f9 | |
parent | 920c0bba825ac914343853d36c4af190b00c81cf (diff) | |
download | samba-67bd7a7cb9589b0db874323aa87246a997fcf922.tar.gz samba-67bd7a7cb9589b0db874323aa87246a997fcf922.tar.bz2 samba-67bd7a7cb9589b0db874323aa87246a997fcf922.zip |
r3246: new files should get created with FILE_ATTRIBUTE_ARCHIVE
(This used to be commit 090574c6982f703b124a5a123d2199be8f5b3968)
-rw-r--r-- | source4/ntvfs/posix/pvfs_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |