s3-nmbd: Fix bug #7875
authorBjörn Baumbach <bb@sernet.de>
Fri, 7 Jan 2011 14:53:13 +0000 (15:53 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 7 Jan 2011 16:44:08 +0000 (17:44 +0100)
nmbd --port didn't work

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jan  7 17:44:08 CET 2011 on sn-devel-104

source3/nmbd/nmbd.c

index 446c8933f4812d68d5c30fbb450a0288b7587748..b2230c3e048380b469b93763c7060881eed38377 100644 (file)
@@ -760,8 +760,8 @@ static bool open_sockets(bool isdaemon, int port)
        {"foreground", 'F', POPT_ARG_NONE, NULL, OPT_FORK, "Run daemon in foreground (for daemontools & etc)" },
        {"no-process-group", 0, POPT_ARG_NONE, NULL, OPT_NO_PROCESS_GROUP, "Don't create a new process group" },
        {"log-stdout", 'S', POPT_ARG_NONE, NULL, OPT_LOG_STDOUT, "Log to stdout" },
-       {"hosts", 'H', POPT_ARG_STRING, &p_lmhosts, 'H', "Load a netbios hosts file"},
-       {"port", 'p', POPT_ARG_INT, &global_nmb_port, NMB_PORT, "Listen on the specified port" },
+       {"hosts", 'H', POPT_ARG_STRING, &p_lmhosts, 0, "Load a netbios hosts file"},
+       {"port", 'p', POPT_ARG_INT, &global_nmb_port, 0, "Listen on the specified port" },
        POPT_COMMON_SAMBA
        { NULL }
        };