summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-11-04 14:50:08 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-11-04 14:50:08 +0000
commit5883bc73c1d7f9c92c74eedf7b2eca9953c5c7a5 (patch)
treef826d575744742403d6b44d036d12c227440de3f
parent366da1ee377e279d57e247667f02818aca935b30 (diff)
downloadsamba-5883bc73c1d7f9c92c74eedf7b2eca9953c5c7a5.tar.gz
samba-5883bc73c1d7f9c92c74eedf7b2eca9953c5c7a5.tar.bz2
samba-5883bc73c1d7f9c92c74eedf7b2eca9953c5c7a5.zip
Handle -p correctly
(This used to be commit b69d5fffd97890f80df6675fb71bc230aacc8234)
-rw-r--r--source3/smbd/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index b17ca7ba2c..3d9a4675b2 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -630,7 +630,7 @@ static void init_structs(void )
{"daemon", 'D', POPT_ARG_VAL, &is_daemon, True, "Become a daemon (default)" },
{"interactive", 'i', POPT_ARG_VAL, &interactive, True, "Run interactive (not a daemon)"},
{"build-options", 'b', POPT_ARG_NONE, NULL, 'b', "Print build options" },
- {"port", 'p', POPT_ARG_STRING, ports, 0, "Listen on the specified ports"},
+ {"port", 'p', POPT_ARG_STRING, &ports, 0, "Listen on the specified ports"},
{NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_debug},
{NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_configfile},
{NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_socket_options},