From cabed2fb179ea38ac93f8b9872dc3be7825d13f8 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 7 Jun 2011 16:42:02 -0700 Subject: Part 1 of bugfix for #8211 - "inherit owner = yes" doesn't interact correctly with "inherit permissions = yes" and POSIX ACLs When changing ownership on a new directory 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/smbd') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index d4b0934681..fedb2735fb 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -350,6 +350,8 @@ NTSTATUS change_dir_owner_to_parent(connection_struct *conn, DEBUG(10,("change_dir_owner_to_parent: changed ownership of new " "directory %s to parent directory uid %u.\n", fname, (unsigned int)smb_fname_parent->st.st_ex_uid )); + /* Ensure the uid entry is updated. */ + psbuf->st_ex_uid = smb_fname_parent->st.st_ex_uid; } chdir: -- cgit