From: Volker Lendecke Date: Mon, 18 Mar 2019 10:00:50 +0000 (+0100) Subject: utils: Use cli_hardlink instead of cli_nt_hardlink X-Git-Tag: talloc-2.2.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c12a705e6f16bfe0260c82fcbd62043a4a6ee37;p=thirdparty%2Fsamba.git utils: Use cli_hardlink instead of cli_nt_hardlink Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/client/client.c b/source3/client/client.c index 9db8ff65717..366368630cb 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -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)); diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 639ab27e3b9..c7b3bf28041 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -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;