diff options
author | Volker Lendecke <vl@samba.org> | 2010-11-11 15:51:46 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2010-11-11 16:16:24 +0000 |
commit | ddd33f035199bce2fc9d8deb3c2c4ad627ad36d4 (patch) | |
tree | 207c2886ab74c3ab72b564c05e599cd7834b8e08 /source3/torture | |
parent | 1b13a4d22b3f0eca6926ab8ce61147784f6e993e (diff) | |
download | samba-ddd33f035199bce2fc9d8deb3c2c4ad627ad36d4.tar.gz samba-ddd33f035199bce2fc9d8deb3c2c4ad627ad36d4.tar.bz2 samba-ddd33f035199bce2fc9d8deb3c2c4ad627ad36d4.zip |
s3: Make cli_set_ea_path return NTSTATUS
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index f69d734b7b..635eb5d867 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -5222,8 +5222,10 @@ static bool run_eatest(int dummy) slprintf(ea_name, sizeof(ea_name), "EA_%d", i+10); memset(ea_val, (char)i+1, i+1); - if (!cli_set_ea_path(cli, fname, ea_name, ea_val, i+1)) { - printf("ea_set of name %s failed - %s\n", ea_name, cli_errstr(cli)); + status = cli_set_ea_path(cli, fname, ea_name, ea_val, i+1); + if (!NT_STATUS_IS_OK(status)) { + printf("ea_set of name %s failed - %s\n", ea_name, + nt_errstr(status)); talloc_destroy(mem_ctx); return False; } @@ -5257,8 +5259,10 @@ static bool run_eatest(int dummy) for (i = 0; i < 20; i++) { fstring ea_name; slprintf(ea_name, sizeof(ea_name), "ea_%d", i); - if (!cli_set_ea_path(cli, fname, ea_name, "", 0)) { - printf("ea_set of name %s failed - %s\n", ea_name, cli_errstr(cli)); + status = cli_set_ea_path(cli, fname, ea_name, "", 0); + if (!NT_STATUS_IS_OK(status)) { + printf("ea_set of name %s failed - %s\n", ea_name, + nt_errstr(status)); talloc_destroy(mem_ctx); return False; } @@ -5284,8 +5288,10 @@ static bool run_eatest(int dummy) } /* Try and delete a non existant EA. */ - if (!cli_set_ea_path(cli, fname, "foo", "", 0)) { - printf("deleting non-existant EA 'foo' should succeed. %s\n", cli_errstr(cli)); + status = cli_set_ea_path(cli, fname, "foo", "", 0); + if (!NT_STATUS_IS_OK(status)) { + printf("deleting non-existant EA 'foo' should succeed. %s\n", + nt_errstr(status)); correct = False; } |