From: Christopher R. Hertel Date: Tue, 11 Aug 1998 21:25:55 +0000 (+0000) Subject: Quick fix for a small problem. If you run 'nmbd -?' you'd get the usage X-Git-Tag: samba-4.0.0alpha6~801^2~21946 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=ea8631d249dc41b9c3abbe8bfaf8c64a313b0478;ds=sidebyside 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) --- diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 567f7bbca76..9df30adc8c8 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; }