aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/facter.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/facter.py b/src/facter.py
index 300e12f..647cd1f 100644
--- a/src/facter.py
+++ b/src/facter.py
@@ -30,7 +30,11 @@ def glibc_version_string(bin=None):
# manpage says, "If filename is NULL, then the returned handle is for the
# main program". This way we can let the linker do the work to figure out
# which libc our process is actually using.
- process_namespace = ctypes.CDLL(bin)
+ try:
+ process_namespace = ctypes.CDLL(bin)
+ except OSError:
+ return None
+
try:
gnu_get_libc_version = process_namespace.gnu_get_libc_version
except AttributeError: