diff options
Diffstat (limited to 'Lib/tarfile.py')
-rw-r--r-- | Lib/tarfile.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 11b4b68..93e6cd9 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -2211,8 +2211,7 @@ class TarFile(object): if tarinfo.issym() and hasattr(os, "lchown"): os.lchown(targetpath, u, g) else: - if sys.platform != "os2emx": - os.chown(targetpath, u, g) + os.chown(targetpath, u, g) except EnvironmentError as e: raise ExtractError("could not change owner") |