From d637cd23809c9b5ace233e24df3ea25df4735d7a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 23 Jun 2011 16:52:34 +0200 Subject: s3: Remove a call to cli_errstr --- source3/client/client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/client/client.c b/source3/client/client.c index b485df7741..79b5799135 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -3004,6 +3004,7 @@ static int cmd_symlink(void) char *buf = NULL; char *buf2 = NULL; struct cli_state *newcli; + NTSTATUS status; if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) || !next_token_talloc(ctx, &cmd_ptr,&buf2,NULL)) { @@ -3032,9 +3033,10 @@ static int cmd_symlink(void) return 1; } - if (!NT_STATUS_IS_OK(cli_posix_symlink(newcli, oldname, newname))) { + status = cli_posix_symlink(newcli, oldname, newname); + if (!NT_STATUS_IS_OK(status)) { d_printf("%s symlinking files (%s -> %s)\n", - cli_errstr(newcli), newname, newname); + nt_errstr(status), newname, newname); return 1; } -- cgit