]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: syncops. Add 'connection_struct *conn' to syncops_smb_fname().
authorJeremy Allison <jra@samba.org>
Thu, 17 Jun 2021 18:55:50 +0000 (11:55 -0700)
committerNoel Power <npower@samba.org>
Tue, 22 Jun 2021 13:44:34 +0000 (13:44 +0000)
Not yet used. This will allow us to make syncops really stackable later.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/modules/vfs_syncops.c

index e36cb79e64d7c42e5679fef887369e41a464b31a..3c1910fa58d4fe129fba8199ad70eeafbfea8b92 100644 (file)
@@ -111,7 +111,8 @@ static void syncops_two_names(const char *name1, const char *name2)
 /*
   sync two meta data changes for 1 names
  */
-static void syncops_smb_fname(const struct smb_filename *smb_fname)
+static void syncops_smb_fname(connection_struct *conn,
+                             const struct smb_filename *smb_fname)
 {
        char *parent = NULL;
        if (smb_fname != NULL) {
@@ -169,7 +170,7 @@ static int syncops_renameat(vfs_handle_struct *handle,
        ret = SMB_VFS_NEXT_ ## op args; \
        if (ret == 0 \
        && config->onmeta && !config->disable \
-       && fname) syncops_smb_fname(full_fname); \
+       && fname) syncops_smb_fname(dirfsp->conn, full_fname); \
        TALLOC_FREE(full_fname); \
        return ret; \
 } while (0)