diff options
author | jwbernin <jwbernin@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2006-11-24 15:25:58 +0000 |
---|---|---|
committer | jwbernin <jwbernin@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2006-11-24 15:25:58 +0000 |
commit | 034f0c4e5272a84ad787c5ae46b6e59d09b4f02c (patch) | |
tree | 3d944d8d1c520813cf78c207ce6bf07f131d3c77 /src/lib | |
parent | ce816a536ca0f733b8e4dfdc427ffc2a8117bf52 (diff) | |
download | sos-034f0c4e5272a84ad787c5ae46b6e59d09b4f02c.tar.gz |
Preserve timestamp, permissions, and ownership of copied files
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@56 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/sos/plugintools.py | 2 |
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)) |