diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-07 17:56:19 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-07 19:16:28 +0200 |
commit | 840a1c7445377c24bfff04ffa619ea6b4aa83029 (patch) | |
tree | 4d976c55f4680110c883b8857c84837494eec039 | |
parent | 60873a9e48115e5bfb3c58cccd078c49d43c56bc (diff) | |
download | samba-840a1c7445377c24bfff04ffa619ea6b4aa83029.tar.gz samba-840a1c7445377c24bfff04ffa619ea6b4aa83029.tar.bz2 samba-840a1c7445377c24bfff04ffa619ea6b4aa83029.zip |
s3-torture: use nt_errstr() for cli_unlink() error handling
Use nt_errstr() instead of cli_errstr() for error handling on
cli_unlink() calls.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | source3/torture/torture.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 2243fe6c0b..ab42c26b41 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2787,7 +2787,9 @@ static bool run_unlinktest(int dummy) return False; } - if (NT_STATUS_IS_OK(cli_unlink(cli, fname, FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN))) { + status = cli_unlink(cli, fname, + FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN); + if (NT_STATUS_IS_OK(status)) { printf("error: server allowed unlink on an open file\n"); correct = False; } else { |