dhclient vs dhcpcd selection is broken



Hi guys!

I'm currently maintaining NetworkManager package in AgiliaLinux, and
when updating to 0.8.0.998 I discovered a bug.
This distro uses dhcpcd as default DHCP client, but there is also
dhclient v3 on some configurations.
I configured NM as --with-dhclient=no --with-dhcpcd=/sbin/dhcpcd, but
NetworkManager tried to use dhclient anyway, and fails, because it
requires v4 (it seems to be incompatible with v3).

I resolved the problem with the patch:

--- a/src/dhcp-manager/nm-dhcp-dhclient.c	2010-05-22 22:35:03.000000000 +0400
+++ b/src/dhcp-manager/nm-dhcp-dhclient.c	2010-06-25 00:22:47.618906714 +0400
@@ -64,7 +64,8 @@
 const char *
 nm_dhcp_dhclient_get_path (const char *try_first)
 {
-	static const char *dhclient_paths[] = {
+	return NULL; // Never use dhclient
+/*	static const char *dhclient_paths[] = {
 		"/sbin/dhclient",
 		"/usr/sbin/dhclient",
 		"/usr/pkg/sbin/dhclient",
@@ -83,6 +84,7 @@
 	}

 	return *path;
+	*/
 }

 static char *

Of course it is a dirty hack, but while I don't need dhclient support,
it works for me, but it will be better if you fix it in more elegant
and flexible way.

-- 
Best regards, Bogdan "aix27249" Kokorev <i27249 gmail com>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]