summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-06-23 16:52:34 +0200
committerVolker Lendecke <vl@samba.org>2011-06-24 21:24:17 +0200
commitd637cd23809c9b5ace233e24df3ea25df4735d7a (patch)
treeec5fc205c9d93c395125eeb7b6ef3bf49b6ad880 /source3/client
parentbbe8e0bcf47022584f4d908adf52dec522f3d736 (diff)
downloadsamba-d637cd23809c9b5ace233e24df3ea25df4735d7a.tar.gz
samba-d637cd23809c9b5ace233e24df3ea25df4735d7a.tar.bz2
samba-d637cd23809c9b5ace233e24df3ea25df4735d7a.zip
s3: Remove a call to cli_errstr
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c6
1 files 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;
}