svn commit: samba r10644 - branches/SAMBA_3_0/source/smbd trunk/source/smbd

jpeach at samba.org jpeach at samba.org
Fri Sep 30 06:37:51 GMT 2005


Author: jpeach
Date: 2005-09-30 06:37:51 +0000 (Fri, 30 Sep 2005)
New Revision: 10644

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10644

Log:
Let the ports parameter be a comma-separated list, as documented in
smbd(8).

Modified:
   branches/SAMBA_3_0/source/smbd/server.c
   trunk/source/smbd/server.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/server.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/server.c	2005-09-30 04:52:21 UTC (rev 10643)
+++ branches/SAMBA_3_0/source/smbd/server.c	2005-09-30 06:37:51 UTC (rev 10644)
@@ -245,7 +245,7 @@
 				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 @@
 
 		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 */

Modified: trunk/source/smbd/server.c
===================================================================
--- trunk/source/smbd/server.c	2005-09-30 04:52:21 UTC (rev 10643)
+++ trunk/source/smbd/server.c	2005-09-30 06:37:51 UTC (rev 10644)
@@ -247,7 +247,7 @@
 				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;
@@ -287,7 +287,7 @@
 
 		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 */



More information about the samba-cvs mailing list