From 1f9c32e73859e3f60561e95e1cb4819f656930c8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 2 Jan 2002 03:54:40 +0000 Subject: 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) --- source3/torture/torture.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'source3/torture/torture.c') 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)); } -- cgit