]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Pass parent_dir_fname parameter to inherit_new_acl().
authorJeremy Allison <jra@samba.org>
Tue, 25 May 2021 01:38:06 +0000 (18:38 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
Not yet used.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/open.c

index f105866d2a90c26062495d01f8b1bf35f42bfb8d..7b9d23a3ad3d4b50a307b8ab0ec588459525e2ec 100644 (file)
@@ -5043,7 +5043,8 @@ static NTSTATUS open_streams_for_delete(connection_struct *conn,
  as the NT ACL when read.
 *********************************************************************/
 
-static NTSTATUS inherit_new_acl(files_struct *fsp)
+static NTSTATUS inherit_new_acl(struct smb_filename *parent_dir_fname,
+                               files_struct *fsp)
 {
        TALLOC_CTX *frame = talloc_stackframe();
        struct security_descriptor *parent_desc = NULL;
@@ -6057,7 +6058,7 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
                        }
                } else if (lp_inherit_acls(SNUM(conn))) {
                        /* Inherit from parent. Errors here are not fatal. */
-                       status = inherit_new_acl(fsp);
+                       status = inherit_new_acl(parent_dir_fname, fsp);
                        if (!NT_STATUS_IS_OK(status)) {
                                DEBUG(10,("inherit_new_acl: failed for %s with %s\n",
                                        fsp_str_dbg(fsp),