]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Pass parent_dir_fname_in, smb_fname_atname_in to mkdir_internal().
authorJeremy Allison <jra@samba.org>
Mon, 24 May 2021 23:28:08 +0000 (16:28 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
Not yet used. Next step will be to use them to replace the
internal parent_dir_fname,base_name variables inside mkdir_internal().

Annotate them so we know what these extra params are.

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

index cbe8fa5ac8f8b5f81d07dba9fe6f69471e9152b5..a3e104d9c6a56cf870601db1f28c703f5e10fa5c 100644 (file)
@@ -4400,7 +4400,9 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
 }
 
 static NTSTATUS mkdir_internal(connection_struct *conn,
-                              struct smb_filename *smb_dname,
+                              struct smb_filename *parent_dir_fname_in, /* parent. */
+                              struct smb_filename *smb_fname_atname_in, /* atname relative to parent. */
+                              struct smb_filename *smb_dname, /* full pathname from root of share. */
                               uint32_t file_attributes,
                               struct files_struct *fsp)
 {
@@ -4656,6 +4658,8 @@ static NTSTATUS open_directory(connection_struct *conn,
                        }
 
                        status = mkdir_internal(conn,
+                                               parent_dir_fname,
+                                               smb_fname_atname,
                                                smb_dname,
                                                file_attributes,
                                                fsp);
@@ -4682,6 +4686,8 @@ static NTSTATUS open_directory(connection_struct *conn,
                                info = FILE_WAS_OPENED;
                        } else {
                                status = mkdir_internal(conn,
+                                                       parent_dir_fname,
+                                                       smb_fname_atname,
                                                        smb_dname,
                                                        file_attributes,
                                                        fsp);