From 4a2cc231d22a82ed21771a72508f15d21ed63227 Mon Sep 17 00:00:00 2001 From: James Peach Date: Fri, 30 Sep 2005 06:37:51 +0000 Subject: r10644: Let the ports parameter be a comma-separated list, as documented in smbd(8). (This used to be commit f049fd463b087ccf4873b03675cca5eb8576af2e) --- source3/smbd/server.c | 4 ++-- 1 file 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 */ -- cgit