summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-07-07 15:42:33 +0200
committerVolker Lendecke <vlendec@samba.org>2011-07-07 18:04:26 +0200
commiteba5d0b64162c7250ad4869c3393d0d00aff868c (patch)
tree7a47c1e1145cc850c5b5ef026a76ee3a4a1e2f56 /source3
parent1caa7a852c972f1e6a88538f6d10baec17842449 (diff)
downloadsamba-eba5d0b64162c7250ad4869c3393d0d00aff868c.tar.gz
samba-eba5d0b64162c7250ad4869c3393d0d00aff868c.tar.xz
samba-eba5d0b64162c7250ad4869c3393d0d00aff868c.zip
s3: Remove a use of cli_errstr
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Jul 7 18:04:26 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/torture.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 7e2a5e7beb..64f8bf77b6 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -642,8 +642,12 @@ static bool rw_torture3(struct cli_state *c, char *lockfname)
if (procnum == 0)
{
- if (!NT_STATUS_IS_OK(cli_unlink(c, lockfname, FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN))) {
- printf("unlink failed (%s) (normal, this file should not exist)\n", cli_errstr(c));
+ status = cli_unlink(
+ c, lockfname,
+ FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("unlink failed (%s) (normal, this file should "
+ "not exist)\n", nt_errstr(status));
}
status = cli_open(c, lockfname, O_RDWR | O_CREAT | O_EXCL,