utils: Use cli_hardlink instead of cli_nt_hardlink
authorVolker Lendecke <vl@samba.org>
Mon, 18 Mar 2019 10:00:50 +0000 (11:00 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 20 Mar 2019 22:07:46 +0000 (22:07 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/client/client.c
source3/torture/torture.c

index 9db8ff657177d969ff5cedccf76de4405e5f6917..366368630cb1ce007c9f665cea2798b05387acae 100644 (file)
@@ -4492,7 +4492,7 @@ static int cmd_hardlink(void)
                return 1;
        }
 
-       status = cli_nt_hardlink(targetcli, targetname, dest);
+       status = cli_hardlink(targetcli, targetname, dest);
        if (!NT_STATUS_IS_OK(status)) {
                d_printf("%s doing an NT hard link of files\n",
                         nt_errstr(status));
index 639ab27e3b9fe070b246f1f3f09c5e16405eb19f..c7b3bf28041dd53ce183cb464b37061d89fe9461 100644 (file)
@@ -3833,7 +3833,7 @@ static bool run_oplock4(int dummy)
        }
 
        /* Now create a hardlink. */
-       status = cli_nt_hardlink(cli1, fname, fname_ln);
+       status = cli_hardlink(cli1, fname, fname_ln);
        if (!NT_STATUS_IS_OK(status)) {
                printf("nt hardlink failed (%s)\n", nt_errstr(status));
                return false;
@@ -4737,7 +4737,7 @@ static bool run_deletetest_ln(int dummy)
        }
 
        /* Now create a hardlink. */
-       status = cli_nt_hardlink(cli, fname, fname_ln);
+       status = cli_hardlink(cli, fname, fname_ln);
        if (!NT_STATUS_IS_OK(status)) {
                printf("nt hardlink failed (%s)\n", nt_errstr(status));
                return false;