From: Ralph Boehme Date: Mon, 21 Oct 2024 13:52:29 +0000 (+0200) Subject: smbd: pass fsp to notify_rename() X-Git-Tag: tdb-1.4.13~713 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4256b790d3e2e81937b63ec882a3a0c2a2678604;p=thirdparty%2Fsamba.git smbd: pass fsp to notify_rename() Not used for now, that comes soon. Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/source3/smbd/smb2_reply.c b/source3/smbd/smb2_reply.c index bb438989a0f..043be186612 100644 --- a/source3/smbd/smb2_reply.c +++ b/source3/smbd/smb2_reply.c @@ -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);