]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: pass fsp to notify_rename()
authorRalph Boehme <slow@samba.org>
Mon, 21 Oct 2024 13:52:29 +0000 (15:52 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 5 Nov 2024 14:39:30 +0000 (14:39 +0000)
Not used for now, that comes soon.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/smb2_reply.c

index bb438989a0fce70a8ae4c4e41451ff128da7fe03..043be186612a384d072ebf2f328ff1d6431d6fa5 100644 (file)
@@ -1279,10 +1279,12 @@ static bool rename_path_prefix_equal(const struct smb_filename *smb_fname_src,
  * Do the notify calls from a rename
  */
 
-static void notify_rename(connection_struct *conn, bool is_dir,
+static void notify_rename(struct connection_struct *conn,
+                         struct files_struct *fsp,
                          const struct smb_filename *smb_fname_src,
                          const struct smb_filename *smb_fname_dst)
 {
+       bool is_dir = fsp->fsp_flags.is_directory;
        char *parent_dir_src = NULL;
        char *parent_dir_dst = NULL;
        uint32_t mask;
@@ -1801,7 +1803,7 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
                TALLOC_FREE(lck);
 
                notify_rename(conn,
-                             fsp->fsp_flags.is_directory,
+                             fsp,
                              old_fname,
                              smb_fname_dst);