diff options
author | Christopher R. Hertel <crh@samba.org> | 1998-08-11 21:25:55 +0000 |
---|---|---|
committer | Christopher R. Hertel <crh@samba.org> | 1998-08-11 21:25:55 +0000 |
commit | c69727bd29c0bf1cded0db84602e791304691e2e (patch) | |
tree | b7063b287aa2af9d96bb127ca973f334e2c188e7 /source/nmbd | |
parent | 53b433e6ab9fd69a02016ee4f2a3f756640ea565 (diff) | |
download | samba-c69727bd29c0bf1cded0db84602e791304691e2e.tar.gz samba-c69727bd29c0bf1cded0db84602e791304691e2e.tar.xz samba-c69727bd29c0bf1cded0db84602e791304691e2e.zip |
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 -)-----
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c index 567f7bbca76..9df30adc8c8 100644 --- a/source/nmbd/nmbd.c +++ b/source/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; } |