aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/unpackaged.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/sos/plugins/unpackaged.py b/sos/plugins/unpackaged.py
index 4c065e11..91de9de2 100644
--- a/sos/plugins/unpackaged.py
+++ b/sos/plugins/unpackaged.py
@@ -45,9 +45,10 @@ class Unpackaged(Plugin, RedHatPlugin):
path = os.path.abspath(os.readlink(path))
except Exception:
continue
- file_list.append(path)
+ file_list.append(os.path.realpath(path))
for name in dirs:
- file_list.append(os.path.join(root, name))
+ file_list.append(os.path.realpath(
+ os.path.join(root, name)))
return file_list
@@ -63,7 +64,8 @@ class Unpackaged(Plugin, RedHatPlugin):
return expanded
all_fsystem = []
- all_frpm = set(self.policy.mangle_package_path(
+ all_frpm = set(os.path.realpath(x)
+ for x in self.policy.mangle_package_path(
self.policy.package_manager.files))
for d in get_env_path_list():