From 9c48f5bf2dcc12e6eb6170ab3a2af5ca119cf008 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 25 Jun 2009 12:57:15 -0700 Subject: [PATCH] Fix bug #6506 - SMBD server doesn't set EAs when a file is overwritten in NT_TRANSACT_CREATE. Reported and verified by Long Li Jeremy. --- source3/smbd/open.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 5b62ff022dd8..eb703442240a 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; -- 2.34.1