r10644: Let the ports parameter be a comma-separated list, as documented in
authorJames Peach <jpeach@samba.org>
Fri, 30 Sep 2005 06:37:51 +0000 (06:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:04:48 +0000 (11:04 -0500)
smbd(8).

source/smbd/server.c

index a10968749d9009bbb018f33d21050a907f4a0471..1ff03174fe15b3dad287dee0dab4fff29f0677ea 100644 (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 */