aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/sos/plugintools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/sos/plugintools.py b/src/lib/sos/plugintools.py
index 2ac67eeb..7e69e262 100644
--- a/src/lib/sos/plugintools.py
+++ b/src/lib/sos/plugintools.py
@@ -156,7 +156,7 @@ class PluginBase:
"""
try:
# pylint: disable-msg = W0612
- status, shout, sherr = sosGetCommandOutput("/bin/cp --parents " + src +" " + self.cInfo['dstroot'])
+ status, shout, sherr = sosGetCommandOutput("/bin/cp --parents -p " + src +" " + self.cInfo['dstroot'])
self.cInfo['logfd'].write(shout)
self.cInfo['logfd'].write(sherr)
abspath = os.path.join(self.cInfo['dstroot'], src.lstrip(os.path.sep))