aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-01-25 19:32:04 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-07-08 17:05:20 +0100
commitf6f7934c7d3e7f6cb41879fc0625b06d0468af4e (patch)
tree99b9c335c2556906dc3136e12e094be51d97cb04
parent0d060dc3aa5e90373e7bb55f9310b4cf9db0dad4 (diff)
downloadsos-f6f7934c7d3e7f6cb41879fc0625b06d0468af4e.tar.gz
[plugin] fix chrooted symlink handling
_copy_symlink() needs to strip_sysroot(), not join_sysroot(), on a link target before handing it to _do_copy_path(). Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 10fdae53..9d04939b 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -288,7 +288,7 @@ class Plugin(object):
# skip recursive copying of symlink pointing to itself.
if (absdest != srcpath):
- self._do_copy_path(absdest)
+ self._do_copy_path(self.strip_sysroot(absdest))
else:
self._log_debug("link '%s' points to itself, skipping target..."
% linkdest)