s3-nmbd: Fix bug #7875
authorBjörn Baumbach <bb@sernet.de>
Fri, 7 Jan 2011 14:53:13 +0000 (15:53 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Jan 2011 16:58:55 +0000 (17:58 +0100)
nmbd --port didn't work
(cherry picked from commit 79280c99f67c3a3bfb1873b373ec181fa402f18c)
(cherry picked from commit 2b1a5fad6c681d8ff8e592ee92d8251040c0760d)

source3/nmbd/nmbd.c

index f31e7b1e1cb3fb396167978e5256d4f5304e69c9..eefe27a665139d9d97cb48241491c63fe3418c48 100644 (file)
@@ -765,8 +765,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 }
        };