From 29fe017c689fbeb670e5e8f9c9b540ca88df95e8 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 17 Oct 2006 17:37:58 +0000 Subject: [PATCH] check for lsb-release before debian_version, else Ubuntu discovered as Debian --- src/os/linux/linux_sigar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index cb301f64..85a8e7d9 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -2216,12 +2216,12 @@ static linux_vendor_info_t linux_vendors[] = { { "Red Hat", "/etc/redhat-release", redhat_vendor_parse }, { "Fedora", "/etc/fedora-release", NULL }, { "SuSE", "/etc/SuSE-release", NULL }, - { "Debian", "/etc/debian_version", NULL }, { "Gentoo", "/etc/gentoo-release", NULL }, { "Slackware", "/etc/slackware-version", NULL }, { "Mandrake", "/etc/mandrake-release", NULL }, { "VMware", "/proc/vmware/version", NULL }, { "lsb", "/etc/lsb-release", lsb_vendor_parse }, + { "Debian", "/etc/debian_version", NULL }, { NULL } };