s3: libsmb: Cleanup - remove unused fname_src parameter from cli_dfs_target_check().
authorJeremy Allison <jra@samba.org>
Fri, 2 Sep 2022 18:00:09 +0000 (11:00 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 15 Sep 2022 18:43:32 +0000 (18:43 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/libsmb/cli_smb2_fnum.c
source3/libsmb/clidfs.c
source3/libsmb/clifile.c
source3/libsmb/proto.h

index 1b8819cc6f2ebce10dcd59a63fb6c850160bb881..5a12fcbfb99809431cde0aa934bd48b132c8f64c 100644 (file)
@@ -3213,7 +3213,6 @@ struct tevent_req *cli_smb2_rename_send(
         */
        status = cli_dfs_target_check(state,
                                cli,
-                               fname_src,
                                fname_dst,
                                &fname_dst);
        if (tevent_req_nterror(req, status)) {
index 1e73aa221dc3655f2662c79762e5892976b181ad..4fa1fc4aa4571eb8d33187bf01f7a07c153a3372 100644 (file)
@@ -1261,7 +1261,6 @@ bool cli_check_msdfs_proxy(TALLOC_CTX *ctx,
 
 NTSTATUS cli_dfs_target_check(TALLOC_CTX *mem_ctx,
                        struct cli_state *cli,
-                       const char *fname_src,
                        const char *fname_dst,
                        const char **fname_dst_out)
 {
index 11d919a51bf1669ab813649415a117723f12cb1b..2831d0457f1d8b34fa9bea6ad41c96e8530aa341 100644 (file)
@@ -1240,7 +1240,6 @@ static struct tevent_req *cli_smb1_rename_send(TALLOC_CTX *mem_ctx,
         */
        status = cli_dfs_target_check(state,
                                cli,
-                               fname_src,
                                fname_dst,
                                &fname_dst);
        if (!NT_STATUS_IS_OK(status)) {
@@ -1344,7 +1343,6 @@ static struct tevent_req *cli_cifs_rename_send(TALLOC_CTX *mem_ctx,
         */
        status = cli_dfs_target_check(state,
                                cli,
-                               fname_src,
                                fname_dst,
                                &fname_dst);
        if (tevent_req_nterror(req, status)) {
@@ -1557,7 +1555,6 @@ static struct tevent_req *cli_ntrename_internal_send(TALLOC_CTX *mem_ctx,
         */
        status = cli_dfs_target_check(state,
                                cli,
-                               fname_src,
                                fname_dst,
                                &fname_dst);
        if (tevent_req_nterror(req, status)) {
@@ -1734,7 +1731,6 @@ static struct tevent_req *cli_smb2_hardlink_send(
         */
        status = cli_dfs_target_check(state,
                                cli,
-                               fname_src,
                                fname_dst,
                                &fname_dst);
        if (tevent_req_nterror(req, status)) {
index 46db49015fba97e960e8929eaaea84336c24ac08..6f6ad57173ffdbfcf10013e9528e0a3635665d98 100644 (file)
@@ -165,7 +165,6 @@ bool cli_check_msdfs_proxy(TALLOC_CTX *ctx,
 
 NTSTATUS cli_dfs_target_check(TALLOC_CTX *mem_ctx,
                        struct cli_state *cli,
-                       const char *fname_src,
                        const char *fname_dst,
                        const char **fname_dst_out);