git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d278a43
)
Fix bug #6506 - SMBD server doesn't set EAs when a file is overwritten in NT_TRANSACT...
author
Jeremy Allison
<jra@samba.org>
Thu, 25 Jun 2009 19:57:15 +0000
(12:57 -0700)
committer
Karolin Seeger
<kseeger@samba.org>
Tue, 28 Jul 2009 07:09:30 +0000
(09:09 +0200)
Reported and verified by Long Li <longli@microsoft.com>
Jeremy.
(cherry picked from commit
9c48f5bf2dcc12e6eb6170ab3a2af5ca119cf008
)
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index a721c586437b149d6b5f1f63cfc657cba0a76fb7..16cad8a192679fbce43e4f82a2fdecde7e9eed70 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-3163,7
+3163,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;