The patch for detecting the mandrake 10.1 version string mysteriously vanished from 2.1.15, causing Mandrake 10.1 machines to not realize that they are Mandrake boxes.

The patch below will give cfengine the ability to understand the mandrake version string used (only) in Mandrake 10.1.

$ diff -u misc.c.orig misc.c
--- misc.c.orig 2005-06-17 10:00:14.916834425 -0500
+++ misc.c      2005-06-17 10:03:26.886709667 -0500
@@ -1262,6 +1262,7 @@
/* We are looking for one of the following strings... */
#define MANDRAKE_ID "Linux Mandrake"
#define MANDRAKE_REV_ID "Mandrake Linux"
+#define MANDRAKE_10_1_ID "Mandrakelinux"

#define RELEASE_FLAG "release "
#define MANDRAKE_REL_FILENAME "/etc/mandrake-release"
@@ -1302,6 +1303,10 @@
    {
    vendor = "mandrake";
    }
+ else if(!strncmp(relstring, MANDRAKE_10_1_ID, strlen(MANDRAKE_10_1_ID)))
+       {
+       vendor = "mandrake";
+       }
 else
    {
Verbose("Could not identify OS distro from %s\n", MANDRAKE_REL_FILENAME);

--

Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
[EMAIL PROTECTED]




_______________________________________________
Bug-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-cfengine

Reply via email to