summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2005-09-30 06:37:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:04:48 -0500
commitf049fd463b087ccf4873b03675cca5eb8576af2e (patch)
tree515ca19146b0699fa99689e89f87952dca503503
parentc619ee38f0aee43de571524c8ef3bf6b27b30e74 (diff)
downloadsamba-f049fd463b087ccf4873b03675cca5eb8576af2e.tar.gz
samba-f049fd463b087ccf4873b03675cca5eb8576af2e.tar.xz
samba-f049fd463b087ccf4873b03675cca5eb8576af2e.zip
r10644: Let the ports parameter be a comma-separated list, as documented in
smbd(8).
-rw-r--r--source/smbd/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/server.c b/source/smbd/server.c
index a10968749d9..1ff03174fe1 100644
--- a/source/smbd/server.c
+++ b/source/smbd/server.c
@@ -245,7 +245,7 @@ static BOOL open_sockets_smbd(BOOL is_daemon, BOOL interactive, const char *smb_
continue;
}
- for (ptr=ports; next_token(&ptr, tok, NULL, sizeof(tok)); ) {
+ for (ptr=ports; next_token(&ptr, tok, " \t,", sizeof(tok)); ) {
unsigned port = atoi(tok);
if (port == 0) {
continue;
@@ -285,7 +285,7 @@ static BOOL open_sockets_smbd(BOOL is_daemon, BOOL interactive, const char *smb_
num_interfaces = 1;
- for (ptr=ports; next_token(&ptr, tok, NULL, sizeof(tok)); ) {
+ for (ptr=ports; next_token(&ptr, tok, " \t,", sizeof(tok)); ) {
unsigned port = atoi(tok);
if (port == 0) continue;
/* open an incoming socket */