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 | ea8631d249dc41b9c3abbe8bfaf8c64a313b0478 (patch) | |
tree | 4af7d37d3dbe15db650236308cce8a327a0d734b /source3/nmbd | |
parent | a0082c340a2c577e8ecec8c1e0fefc2765af90dc (diff) | |
download | samba-ea8631d249dc41b9c3abbe8bfaf8c64a313b0478.tar.gz samba-ea8631d249dc41b9c3abbe8bfaf8c64a313b0478.tar.bz2 samba-ea8631d249dc41b9c3abbe8bfaf8c64a313b0478.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 -)-----
(This used to be commit c69727bd29c0bf1cded0db84602e791304691e2e)
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/nmbd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |