summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-11-11 15:51:46 +0100
committerVolker Lendecke <vlendec@samba.org>2010-11-11 16:16:24 +0000
commitddd33f035199bce2fc9d8deb3c2c4ad627ad36d4 (patch)
tree207c2886ab74c3ab72b564c05e599cd7834b8e08 /source3/client
parent1b13a4d22b3f0eca6926ab8ce61147784f6e993e (diff)
downloadsamba-ddd33f035199bce2fc9d8deb3c2c4ad627ad36d4.tar.gz
samba-ddd33f035199bce2fc9d8deb3c2c4ad627ad36d4.tar.bz2
samba-ddd33f035199bce2fc9d8deb3c2c4ad627ad36d4.zip
s3: Make cli_set_ea_path return NTSTATUS
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 51292680ba..062809d1b6 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -3346,6 +3346,7 @@ static int cmd_setea(void)
char *eavalue = NULL;
char *targetname = NULL;
struct cli_state *targetcli;
+ NTSTATUS status;
if (!next_token_talloc(ctx, &cmd_ptr, &name, NULL)
|| !next_token_talloc(ctx, &cmd_ptr, &eaname, NULL)) {
@@ -3369,9 +3370,10 @@ static int cmd_setea(void)
return 1;
}
- if (!cli_set_ea_path(targetcli, targetname, eaname, eavalue,
- strlen(eavalue))) {
- d_printf("set_ea %s: %s\n", src, cli_errstr(cli));
+ status = cli_set_ea_path(targetcli, targetname, eaname, eavalue,
+ strlen(eavalue));
+ if (!NT_STATUS_IS_OK(status)) {
+ d_printf("set_ea %s: %s\n", src, nt_errstr(status));
return 1;
}