From ea8631d249dc41b9c3abbe8bfaf8c64a313b0478 Mon Sep 17 00:00:00 2001 From: "Christopher R. Hertel" Date: Tue, 11 Aug 1998 21:25:55 +0000 Subject: Quick fix for a small problem. If you run 'nmbd -?' you'd get the usage message *but the daemon would start anyway*. I've added a call to exit() in the default: case of the option processing loop. Chris -)----- (This used to be commit c69727bd29c0bf1cded0db84602e791304691e2e) --- source3/nmbd/nmbd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/nmbd') diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 567f7bbca7..9df30adc8c 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -646,9 +646,10 @@ int main(int argc,char *argv[]) exit(0); break; default: - if (!is_a_socket(0)) + if( !is_a_socket(0) ) { usage(argv[0]); + exit(0); } break; } -- cgit