diff options
author | Luke Leighton <lkcl@samba.org> | 2000-08-14 07:37:12 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-08-14 07:37:12 +0000 |
commit | 8fe195df0b5826af7048ef6c87e4b55dfd336cf8 (patch) | |
tree | 48bb18a2fc164d696050f858471d5986667675ac /source/lib/cmd_interp.c | |
parent | b2e044f89de7cb12fd14540d5d7d5070951ce2fb (diff) | |
download | samba-8fe195df0b5826af7048ef6c87e4b55dfd336cf8.tar.gz samba-8fe195df0b5826af7048ef6c87e4b55dfd336cf8.tar.xz samba-8fe195df0b5826af7048ef6c87e4b55dfd336cf8.zip |
hey, jerry: turns out you _have_ converted to get_safe_nt_errmsg!!!
[got confused with which way dirdiff was going :)].
... but you forgot to update TNG's lib/cmd_interp.c...
Diffstat (limited to 'source/lib/cmd_interp.c')
-rw-r--r-- | source/lib/cmd_interp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/lib/cmd_interp.c b/source/lib/cmd_interp.c index 458c2cdaebd..5f7e98c2438 100644 --- a/source/lib/cmd_interp.c +++ b/source/lib/cmd_interp.c @@ -1313,8 +1313,9 @@ int command_main(int argc, char *argv[]) if (IS_BITS_SET_SOME(cmd_set_options, CMD_HELP|CMD_STR)) { free_connections(); + get_safe_nt_error_msg(status, msg, sizeof(msg)); - report(out_hnd, "Exit Status: %s\n", get_nt_error_msg(status)); + report(out_hnd, "Exit Status: %s\n", msg); /* unix only has 8 bit error codes - blergh */ exit(status & 0xFF); } @@ -1330,7 +1331,8 @@ int command_main(int argc, char *argv[]) num_commands = 0; commands = NULL; - report(out_hnd, "Exit Status: %s\n", get_nt_error_msg(status)); + get_safe_nt_error_msg(status, msg, sizeof(msg)); + report(out_hnd, "Exit Status: %s\n", msg); return status; } |