diff options
author | Volker Lendecke <vl@samba.org> | 2009-11-12 23:07:21 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-11-13 09:30:30 +0100 |
commit | f9ad5cd133b57b66a3b71ede7829ef8c226f2224 (patch) | |
tree | 65599c9901d82872b2a60278cf4bdb52e0adec9c /source3/torture | |
parent | 3732798008f26052c030e8a8fc9c9404fd6f5669 (diff) | |
download | samba-f9ad5cd133b57b66a3b71ede7829ef8c226f2224.tar.gz samba-f9ad5cd133b57b66a3b71ede7829ef8c226f2224.tar.bz2 samba-f9ad5cd133b57b66a3b71ede7829ef8c226f2224.zip |
s3: Convert cli_unix_extensions_version to async
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index bda82f2b74..9abcabde89 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -136,10 +136,12 @@ static bool force_cli_encryption(struct cli_state *c, return false; } - if (!cli_unix_extensions_version(c, &major, &minor, &caplow, &caphigh)) { + status = cli_unix_extensions_version(c, &major, &minor, &caplow, + &caphigh); + if (!NT_STATUS_IS_OK(status)) { d_printf("Encryption required and " "can't get UNIX CIFS extensions " - "version from server.\n"); + "version from server: %s\n", nt_errstr(status)); return false; } @@ -4367,6 +4369,7 @@ static bool run_simple_posix_open_test(int dummy) uint16_t fnum1 = (uint16_t)-1; SMB_STRUCT_STAT sbuf; bool correct = false; + NTSTATUS status; printf("Starting simple POSIX open test\n"); @@ -4381,9 +4384,11 @@ static bool run_simple_posix_open_test(int dummy) return false; } - if (!cli_unix_extensions_version(cli1, &major, - &minor, &caplow, &caphigh)) { - printf("Server didn't return UNIX CIFS extensions.\n"); + status = cli_unix_extensions_version(cli1, &major, &minor, &caplow, + &caphigh); + if (!NT_STATUS_IS_OK(status)) { + printf("Server didn't return UNIX CIFS extensions: %s\n", + nt_errstr(status)); return false; } |