From 40c54a736dff751dcdc66d6cd5c5d2307aeda75c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 7 Jun 2011 16:48:14 -0700 Subject: Part 2 of bugfix for #8211 - "inherit owner = yes" doesn't interact correctly with "inherit permissions = yes" and POSIX ACLs When changing ownership on a new file make sure we also change the returned stat struct to have the correct uid. --- source3/smbd/open.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index fedb2735fb..5bd9684fad 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -241,6 +241,8 @@ void change_file_owner_to_parent(connection_struct *conn, DEBUG(10,("change_file_owner_to_parent: changed new file %s to " "parent directory uid %u.\n", fsp_str_dbg(fsp), (unsigned int)smb_fname_parent->st.st_ex_uid)); + /* Ensure the uid entry is updated. */ + fsp->fsp_name->st.st_ex_uid = smb_fname_parent->st.st_ex_uid; } TALLOC_FREE(smb_fname_parent); -- cgit