aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/archive.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/archive.py b/sos/archive.py
index df606566..7f4d78d7 100644
--- a/sos/archive.py
+++ b/sos/archive.py
@@ -140,7 +140,10 @@ class FileCacheArchive(Archive):
f = open(dest, 'w')
f.write(content)
if os.path.exists(src):
+ try:
shutil.copystat(src, dest)
+ except PermissionError:
+ pass
self.log.debug("added string at %s to FileCacheArchive %s"
% (src, self._archive_root))