summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-06-25 12:57:15 -0700
committerJeremy Allison <jra@samba.org>2009-06-25 12:57:15 -0700
commit9c48f5bf2dcc12e6eb6170ab3a2af5ca119cf008 (patch)
treee2ab23ef8b48bcc61e1f6ec94b2622a638501132 /source3
parent4250eab4b58e6194a015bb5d464d60c69de463fc (diff)
downloadsamba-9c48f5bf2dcc12e6eb6170ab3a2af5ca119cf008.tar.gz
samba-9c48f5bf2dcc12e6eb6170ab3a2af5ca119cf008.tar.bz2
samba-9c48f5bf2dcc12e6eb6170ab3a2af5ca119cf008.zip
Fix bug #6506 - SMBD server doesn't set EAs when a file is overwritten in NT_TRANSACT_CREATE.
Reported and verified by Long Li <longli@microsoft.com> Jeremy.
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 5b62ff022d..eb70344224 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -3243,7 +3243,8 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
}
}
- if ((ea_list != NULL) && (info == FILE_WAS_CREATED)) {
+ if ((ea_list != NULL) &&
+ ((info == FILE_WAS_CREATED) || (info == FILE_WAS_OVERWRITTEN))) {
status = set_ea(conn, fsp, fname, ea_list);
if (!NT_STATUS_IS_OK(status)) {
goto fail;