1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-26 18:50:30 +03:00

r10644: Let the ports parameter be a comma-separated list, as documented in

smbd(8).
(This used to be commit f049fd463b087ccf4873b03675cca5eb8576af2e)
This commit is contained in:
James Peach 2005-09-30 06:37:51 +00:00 committed by Gerald (Jerry) Carter
parent 435295f184
commit 4a2cc231d2

View File

@ -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 */