git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0082c3
)
Quick fix for a small problem. If you run 'nmbd -?' you'd get the usage
author
Christopher R. Hertel
<crh@samba.org>
Tue, 11 Aug 1998 21:25:55 +0000
(21:25 +0000)
committer
Christopher R. Hertel
<crh@samba.org>
Tue, 11 Aug 1998 21:25:55 +0000
(21:25 +0000)
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
patch
|
blob
|
history
diff --git
a/source3/nmbd/nmbd.c
b/source3/nmbd/nmbd.c
index 567f7bbca767aab69b92135d46b3315497708c45..9df30adc8c850327c1b19eb02c40a0414377bc5c 100644
(file)
--- 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;
}