]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Add old_dirfsp and new_dirfsp parameters to hardlink_internals().
authorJeremy Allison <jra@samba.org>
Thu, 28 Jul 2022 18:43:21 +0000 (11:43 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 2 Aug 2022 19:49:32 +0000 (19:49 +0000)
Not yet used.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/proto.h
source3/smbd/smb1_nttrans.c
source3/smbd/smb2_trans2.c

index 64dd0b7647bdc831e0d8cfd431714e10b8f7906d..9bb31b1ed28fd4b0503df299c7ef2aff43e3abc7 100644 (file)
@@ -1143,7 +1143,9 @@ NTSTATUS hardlink_internals(TALLOC_CTX *ctx,
                connection_struct *conn,
                struct smb_request *req,
                bool overwrite_if_exists,
+               struct files_struct *old_dirfsp,
                const struct smb_filename *smb_fname_old,
+               struct files_struct *new_dirfsp,
                struct smb_filename *smb_fname_new);
 NTSTATUS smb_set_file_time(connection_struct *conn,
                           files_struct *fsp,
index f07f2b64e4113b2548fd22bb6f11c01808ac6684..ea56f56cea3a3ea68cbda27d62d5f1ebfd402bfa 100644 (file)
@@ -1551,7 +1551,9 @@ void reply_ntrename(struct smb_request *req)
                                                    conn,
                                                    req,
                                                    false,
+                                                   NULL, /* old_dirfsp */
                                                    smb_fname_old,
+                                                   NULL, /* new_dirfsp */
                                                    smb_fname_new);
                        break;
                case RENAME_FLAG_COPY:
index ee5704aeec665e83e78bc6d40344ea3355a873da..e35dd29543c9e2057cd95e1eac2e4384c2cc5fd3 100644 (file)
@@ -4241,7 +4241,9 @@ NTSTATUS hardlink_internals(TALLOC_CTX *ctx,
                connection_struct *conn,
                struct smb_request *req,
                bool overwrite_if_exists,
+               struct files_struct *old_dirfsp,
                const struct smb_filename *smb_fname_old,
+               struct files_struct *new_dirfsp,
                struct smb_filename *smb_fname_new)
 {
        NTSTATUS status = NT_STATUS_OK;
@@ -4919,8 +4921,14 @@ static NTSTATUS smb_set_file_unix_hlink(connection_struct *conn,
                return status;
        }
 
-       return hardlink_internals(ctx, conn, req, false,
-                       smb_fname_old, smb_fname_new);
+       return hardlink_internals(ctx,
+                                 conn,
+                                 req,
+                                 false,
+                                 NULL, /* old_dirfsp */
+                                 smb_fname_old,
+                                 NULL, /* new_dirfsp */
+                                 smb_fname_new);
 }
 
 /****************************************************************************
@@ -5118,7 +5126,9 @@ static NTSTATUS smb_file_link_information(connection_struct *conn,
                                conn,
                                req,
                                overwrite,
+                               NULL, /* src_dirfsp */
                                fsp->fsp_name,
+                               NULL, /* dst_dirfsp */
                                smb_fname_dst);
 
        TALLOC_FREE(smb_fname_dst);