From 1940338f5fe3d0508fd7fcd2fbd28a66505b4baa Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Tue, 18 Jan 2011 18:48:40 -0600 Subject: [PATCH] Don't "chmod 000" paths during restore. --- lib/bup/metadata.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/bup/metadata.py b/lib/bup/metadata.py index 798c115..57539fe 100644 --- a/lib/bup/metadata.py +++ b/lib/bup/metadata.py @@ -273,18 +273,6 @@ class Metadata: else: raise - if stat.S_ISREG(self.mode) \ - | stat.S_ISDIR(self.mode) \ - | stat.S_ISCHR(self.mode) \ - | stat.S_ISBLK(self.mode) \ - | stat.S_ISLNK(self.mode) \ - | stat.S_ISFIFO(self.mode): - # Be safe. - if _have_lchmod: - os.lchmod(path, 0) - elif not stat.S_ISLNK(self.mode): - os.chmod(path, 0) - # Don't try to restore owner unless we're root, and even # if asked, don't try to restore the owner or group if # it doesn't exist in the system db. -- 2.39.2