diff options
author | Jeremy Allison <jra@samba.org> | 2009-04-28 16:43:16 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-04-28 16:43:16 -0700 |
commit | bd6447dcf26ec217f335784f05df304d45288850 (patch) | |
tree | 6e982a5746e120aa6e97d181e1c13916178d61c3 /source3/torture | |
parent | 06e404f5743d1ccce0f4c51ca3ef97927f801a42 (diff) | |
download | samba-bd6447dcf26ec217f335784f05df304d45288850.tar.gz samba-bd6447dcf26ec217f335784f05df304d45288850.tar.bz2 samba-bd6447dcf26ec217f335784f05df304d45288850.zip |
Convert cli_rename to async.
Jeremy.
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/nbio.c | 2 | ||||
-rw-r--r-- | source3/torture/torture.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source3/torture/nbio.c b/source3/torture/nbio.c index 998adac4e0..7503e59357 100644 --- a/source3/torture/nbio.c +++ b/source3/torture/nbio.c @@ -229,7 +229,7 @@ void nb_rmdir(const char *fname) void nb_rename(const char *oldname, const char *newname) { - if (!cli_rename(c, oldname, newname)) { + if (!NT_STATUS_IS_OK(cli_rename(c, oldname, newname))) { printf("ERROR: rename %s %s failed (%s)\n", oldname, newname, cli_errstr(c)); exit(1); diff --git a/source3/torture/torture.c b/source3/torture/torture.c index ed041f7912..238a2f3c83 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -3564,7 +3564,7 @@ static bool run_rename(int dummy) return False; } - if (!cli_rename(cli1, fname, fname1)) { + if (!NT_STATUS_IS_OK(cli_rename(cli1, fname, fname1))) { printf("First rename failed (SHARE_READ) (this is correct) - %s\n", cli_errstr(cli1)); } else { printf("First rename succeeded (SHARE_READ) - this should have failed !\n"); @@ -3590,7 +3590,7 @@ static bool run_rename(int dummy) return False; } - if (!cli_rename(cli1, fname, fname1)) { + if (!NT_STATUS_IS_OK(cli_rename(cli1, fname, fname1))) { printf("Second rename failed (SHARE_DELETE | SHARE_READ) - this should have succeeded - %s\n", cli_errstr(cli1)); correct = False; } else { @@ -3637,7 +3637,7 @@ static bool run_rename(int dummy) } #endif - if (!cli_rename(cli1, fname, fname1)) { + if (!NT_STATUS_IS_OK(cli_rename(cli1, fname, fname1))) { printf("Third rename failed (SHARE_NONE) - this should have succeeded - %s\n", cli_errstr(cli1)); correct = False; } else { @@ -3662,7 +3662,7 @@ static bool run_rename(int dummy) return False; } - if (!cli_rename(cli1, fname, fname1)) { + if (!NT_STATUS_IS_OK(cli_rename(cli1, fname, fname1))) { printf("Fourth rename failed (SHARE_READ | SHARE_WRITE) (this is correct) - %s\n", cli_errstr(cli1)); } else { printf("Fourth rename succeeded (SHARE_READ | SHARE_WRITE) - this should have failed !\n"); @@ -3687,7 +3687,7 @@ static bool run_rename(int dummy) return False; } - if (!cli_rename(cli1, fname, fname1)) { + if (!NT_STATUS_IS_OK(cli_rename(cli1, fname, fname1))) { printf("Fifth rename failed (SHARE_READ | SHARE_WRITE | SHARE_DELETE) - this should have succeeded - %s ! \n", cli_errstr(cli1)); correct = False; |