Hello,

I'm attaching a new patch that applies fine above Debian's source
code.

Sorry by the wrong one.
--- src/backends/NetworkManagerDebian.c   2007-01-19 13:36:15.000000000 -0200
+++ src/backends/NetworkManagerDebian.c   2007-01-19 13:39:27.000000000 -0200
@@ -552,7 +552,9 @@
 	 */
 	for (curr_b = ifparser_getfirst (); curr_b; curr_b = curr_b->next) {
 		if ((!strcmp (curr_b->type, "auto") || !strcmp (curr_b->type, "allow-hotplug"))
-		    && strstr (curr_b->name, iface))
-			blacklist = FALSE;
+		    && strstr (curr_b->name, iface)) {
+  		    blacklist = FALSE;
+  		    goto out;
+	    }
 	}
 
@@ -561,6 +563,8 @@
 	 */
 	for (curr_d = curr_device->info; curr_d; curr_d = curr_d->next) {
 		if (strcmp (curr_d->key, "inet")
-		    || strcmp (curr_d->data, "dhcp" ))
-			blacklist = TRUE;
+ 			|| strcmp (curr_d->data, "dhcp" )) {
+ 			blacklist = TRUE;
+ 			goto out;
+		}
 	}

 out:

-- 
Otavio Salvador                  O.S. Systems
E-mail: [EMAIL PROTECTED]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br

Reply via email to