From: Rob Browning Date: Wed, 19 Jan 2011 00:48:40 +0000 (-0600) Subject: Don't "chmod 000" paths during restore. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1940338f5fe3d0508fd7fcd2fbd28a66505b4baa;p=packages%2Fb%2Fbup.git Don't "chmod 000" paths during restore. --- 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.