summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-08-22 12:06:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:11 -0500
commit8dd00920ef8f9e6dce9bfb80c45ae46c2a562abd (patch)
tree311a8c6f0ccfdd87cfa95b00f7a8c05bbb7f63c8 /source3/nmbd
parentfaab8dba02d364dccf341e0f6756b1bf625d3c5b (diff)
downloadsamba-8dd00920ef8f9e6dce9bfb80c45ae46c2a562abd.tar.gz
samba-8dd00920ef8f9e6dce9bfb80c45ae46c2a562abd.tar.bz2
samba-8dd00920ef8f9e6dce9bfb80c45ae46c2a562abd.zip
r24621: - deferr calling build_options();exit(0);
- use poptPrintUsage() to give the user more info metze (This used to be commit a95d9d1ef99d6a2f77a289f8d2011cae482821b1)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 4f1dd93cae..9c8c764763 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -678,8 +678,9 @@ static BOOL open_sockets(enum smb_server_mode server_mode, int port)
while ((opt = poptGetNextOpt(pc)) != -1) {
switch (opt) {
default:
- d_fprintf(stderr, "\nInvalid option %s: %s\n",
+ d_fprintf(stderr, "\nInvalid option %s: %s\n\n",
poptBadOption(pc, 0), poptStrerror(opt));
+ poptPrintUsage(pc, stderr, 0);
exit(1);
}
};