summaryrefslogtreecommitdiff
path: root/source3/smbd/fileio.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-31 15:45:45 -0700
committerJeremy Allison <jra@samba.org>2007-10-31 15:45:45 -0700
commit8f1f2f04c796a8659d93bafadefca4a98fee00f0 (patch)
tree48921021ab7133572ee5540d5613c1352f05801a /source3/smbd/fileio.c
parent695c4a7a741f1a8a00a4dc867cc3ef731bfc093f (diff)
downloadsamba-8f1f2f04c796a8659d93bafadefca4a98fee00f0.tar.gz
samba-8f1f2f04c796a8659d93bafadefca4a98fee00f0.tar.bz2
samba-8f1f2f04c796a8659d93bafadefca4a98fee00f0.zip
Fix some cases where file_set_dosmode was being passed
False instead of NULL. Fix more of the notifications to be correct for Samba4 RAW-NOTIFY torture (we had missed one when calling set_ea_dos_attribute(). Jeremy. (This used to be commit 39d265375cf55eedddef2c4faa65398df73d5ed2)
Diffstat (limited to 'source3/smbd/fileio.c')
-rw-r--r--source3/smbd/fileio.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c
index 9e296f2204..74f2c6774f 100644
--- a/source3/smbd/fileio.c
+++ b/source3/smbd/fileio.c
@@ -230,8 +230,13 @@ ssize_t write_file(struct smb_request *req,
if (SMB_VFS_FSTAT(fsp,fsp->fh->fd,&st) == 0) {
int dosmode = dos_mode(fsp->conn,fsp->fsp_name,&st);
- if ((lp_store_dos_attributes(SNUM(fsp->conn)) || MAP_ARCHIVE(fsp->conn)) && !IS_DOS_ARCHIVE(dosmode)) {
- file_set_dosmode(fsp->conn,fsp->fsp_name,dosmode | aARCH,&st, False);
+ if ((lp_store_dos_attributes(SNUM(fsp->conn)) ||
+ MAP_ARCHIVE(fsp->conn)) &&
+ !IS_DOS_ARCHIVE(dosmode)) {
+ file_set_dosmode(fsp->conn,fsp->fsp_name,
+ dosmode | aARCH,&st,
+ NULL,
+ false);
}
/*