From 034f0c4e5272a84ad787c5ae46b6e59d09b4f02c Mon Sep 17 00:00:00 2001 From: jwbernin Date: Fri, 24 Nov 2006 15:25:58 +0000 Subject: 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 --- src/lib/sos/plugintools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) -- cgit