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 9db8ff6..3663686 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 639ab27..c7b3bf2 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;