s3: Remove a call to cli_errstr
authorVolker Lendecke <vl@samba.org>
Thu, 23 Jun 2011 14:52:34 +0000 (16:52 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 24 Jun 2011 19:24:17 +0000 (21:24 +0200)
source3/client/client.c

index b485df7741abeb5b9ed968505652911d96f4a2ae..79b57991353f4df4e5372ec35ccdafb4bfc8ea27 100644 (file)
@@ -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;
        }