aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/archive.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/archive.py b/sos/archive.py
index 3702a91f..3bd3fdbc 100644
--- a/sos/archive.py
+++ b/sos/archive.py
@@ -48,6 +48,8 @@ class Archive(object):
os.makedirs(self._archive_path, 0700)
def make_path(self, name):
+ if os.path.isabs(name):
+ name = name.lstrip(os.sep)
return (os.path.join(self._archive_path, name))
def prepend(self, src):