recognize Scientific Linux

This commit is contained in:
Doug MacEachern 2007-10-05 23:13:06 +00:00
parent 8e9c0f8b60
commit f55cb9cfba
1 changed files with 5 additions and 0 deletions

View File

@ -2441,6 +2441,8 @@ static void redhat_vendor_parse(char *line, sigar_sys_info_t *info)
#define RHEL_PREFIX "Red Hat Enterprise Linux "
#define CENTOS_VENDOR "CentOS"
#define SL_VENDOR "Scientific Linux"
if (strnEQ(line, RHEL_PREFIX, sizeof(RHEL_PREFIX)-1)) {
snprintf(info->vendor_version,
sizeof(info->vendor_version),
@ -2450,6 +2452,9 @@ static void redhat_vendor_parse(char *line, sigar_sys_info_t *info)
else if (strnEQ(line, CENTOS_VENDOR, sizeof(CENTOS_VENDOR)-1)) {
SIGAR_SSTRCPY(info->vendor, CENTOS_VENDOR);
}
else if (strnEQ(line, SL_VENDOR, sizeof(SL_VENDOR)-1)) {
SIGAR_SSTRCPY(info->vendor, SL_VENDOR);
}
}
#define is_quote(c) ((c == '\'') || (c == '"'))