From 55b323c2240c2c71a0a3e51e5ee96c746136f57d Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 19 Nov 2012 13:26:05 +0100 Subject: [PATCH] Check os_version when reading release file, os_name is not set for Debian --- src/libimcv/os_info/os_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libimcv/os_info/os_info.c b/src/libimcv/os_info/os_info.c index 098cb1e83..f7cd52524 100644 --- a/src/libimcv/os_info/os_info.c +++ b/src/libimcv/os_info/os_info.c @@ -486,7 +486,7 @@ static bool extract_platform_info(os_type_t *type, chunk_t *name, break; } - if (!os_name.ptr) + if (!os_version.ptr) { DBG1(DBG_IMC, "no distribution release file found"); return FALSE;