diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-01-02 03:54:40 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-01-02 03:54:40 +0000 |
commit | 1f9c32e73859e3f60561e95e1cb4819f656930c8 (patch) | |
tree | 9afae8a7a823ad045a5735a020b382f1b34d10e9 /source3/torture | |
parent | f7b29c59baf7b25836016d941aae4fbce29c3eb8 (diff) | |
download | samba-1f9c32e73859e3f60561e95e1cb4819f656930c8.tar.gz samba-1f9c32e73859e3f60561e95e1cb4819f656930c8.tar.bz2 samba-1f9c32e73859e3f60561e95e1cb4819f656930c8.zip |
Minor update to make the output 'real C'. (The output is intended to be a C
format table for inclusion back into Samba).
Andrew Bartlett
(This used to be commit 95abb2473bb4f93df163a0e8af79d5292e1389b3)
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index bc3310886d..8e70c0941f 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2869,8 +2869,13 @@ static BOOL run_error_map_extract(int dummy) { fstring user; - open_nbt_connection(&c_nt); - open_nbt_connection(&c_dos); + if (!open_nbt_connection(&c_dos)) { + return False; + } + + if (!open_nbt_connection(&c_nt)) { + return False; + } c_dos.force_dos_errors = True; @@ -2922,7 +2927,7 @@ static BOOL run_error_map_extract(int dummy) { printf("** Session setup succeeded. This shouldn't happen...\n"); } if (NT_STATUS_V(nt_status) == error) { - printf("\t{%s,\t%s,\t%s}\n", smb_dos_err_class(errclass), smb_dos_err_name(errclass, errnum), get_nt_error_c_code(nt_status)); + printf("\t{%s,\t%s,\t%s},\n", smb_dos_err_class(errclass), smb_dos_err_name(errclass, errnum), get_nt_error_c_code(nt_status)); } else { printf("/*\t{ This NT error code was 'sqashed'\n\t from %s to %s \n\t during the session setup }\n*/\n", get_nt_error_c_code(NT_STATUS(error)), get_nt_error_c_code(nt_status)); } |