diff options
-rw-r--r-- | sos/archive.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sos/archive.py b/sos/archive.py index 0f65c747..ea9e744e 100644 --- a/sos/archive.py +++ b/sos/archive.py @@ -259,15 +259,11 @@ class TarFileArchive(FileCacheArchive): return "%s.%s" % (self._name, self._suffix) def _build_archive(self): - old_pwd = os.getcwd() - old_umask = os.umask(0o077) os.chdir(self._tmp_dir) tar = tarfile.open(self._archive_name, mode="w") tar.add(os.path.split(self._name)[1], filter=self.copy_permissions_filter) tar.close() - os.umask(old_umask) - os.chdir(old_pwd) def _compress(self): methods = ['xz', 'bzip2', 'gzip'] |