summaryrefslogtreecommitdiff
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
commit4a2cc231d22a82ed21771a72508f15d21ed63227 (patch)
treee0348c393840e868bb9eecd929fbef065eb36508
parent435295f1840aa8bd4c04f20a2348c6d701c6b7dc (diff)
downloadsamba-4a2cc231d22a82ed21771a72508f15d21ed63227.tar.gz
samba-4a2cc231d22a82ed21771a72508f15d21ed63227.tar.bz2
samba-4a2cc231d22a82ed21771a72508f15d21ed63227.zip
r10644: Let the ports parameter be a comma-separated list, as documented in
smbd(8). (This used to be commit f049fd463b087ccf4873b03675cca5eb8576af2e)
-rw-r--r--source3/smbd/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index a10968749d..1ff03174fe 100644
--- a/source3/smbd/server.c
+++ b/source3/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 */