fix for permission error for not owning dir... eitherway process returns to cwd when finished
BUG:FIXED:6748
This commit is contained in:
+6
-1
@@ -13,6 +13,7 @@
|
|||||||
"""Archive module provides access to regular archive file types."""
|
"""Archive module provides access to regular archive file types."""
|
||||||
|
|
||||||
# standard library modules
|
# standard library modules
|
||||||
|
import exceptions
|
||||||
import os
|
import os
|
||||||
import stat
|
import stat
|
||||||
import shutil
|
import shutil
|
||||||
@@ -178,7 +179,11 @@ class ArchiveTar(ArchiveBase):
|
|||||||
if self.type == 'tarlzma' or self.type == 'tarZ':
|
if self.type == 'tarlzma' or self.type == 'tarZ':
|
||||||
os.unlink(self.file_path)
|
os.unlink(self.file_path)
|
||||||
|
|
||||||
os.chdir(oldwd)
|
try:
|
||||||
|
os.chdir(oldwd)
|
||||||
|
# Bug #6748
|
||||||
|
except exceptions.OSError:
|
||||||
|
pass
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def add_to_archive(self, file_name, arc_name=None):
|
def add_to_archive(self, file_name, arc_name=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user