diff options
author | Herb Lewis <herb@samba.org> | 2000-10-12 17:58:40 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2000-10-12 17:58:40 +0000 |
commit | 53ce2f7012d55e200082fa7bc04b27d9dcfcf706 (patch) | |
tree | cf50618f72ff667900a16bd5c086ca76a75f09a1 /source3/utils | |
parent | 7a42a9da7d26ce4635aa479f93de6794317b2f29 (diff) | |
download | samba-53ce2f7012d55e200082fa7bc04b27d9dcfcf706.tar.gz samba-53ce2f7012d55e200082fa7bc04b27d9dcfcf706.tar.bz2 samba-53ce2f7012d55e200082fa7bc04b27d9dcfcf706.zip |
lib/messages.c add debug print for receipt of PING and
REQ_DEBUGLEVEL messages
utils/smbcontrol.c allow "q" to exit interactive mode. Exit on error
from message_init.
(This used to be commit cda8c0439113dcce02a681b0aaddf69326c0ec9a)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbcontrol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index dff0dd3300..57f6149bcd 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -242,7 +242,7 @@ static BOOL do_command(char *dest, char *msg_name, char *params) charset_initialise(); lp_load(servicesf,False,False,False); - message_init(); + if (!message_init()) exit(1); if (argc < 2) usage(True); @@ -277,6 +277,7 @@ static BOOL do_command(char *dest, char *msg_name, char *params) myargc++; } if (!myargc) break; + if (strequal(myargv[0],"q")) break; if (myargc < 2) usage(False); else if (!do_command(myargv[0],myargv[1],myargc > 2 ? myargv[2] : 0)) |