]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
Don't "chmod 000" paths during restore.
authorRob Browning <rlb@defaultvalue.org>
Wed, 19 Jan 2011 00:48:40 +0000 (18:48 -0600)
committerRob Browning <rlb@defaultvalue.org>
Wed, 19 Jan 2011 00:48:40 +0000 (18:48 -0600)
lib/bup/metadata.py

index 798c1156966abdd267f4ca77b01a9cd2faf1f48f..57539fecc5e37677badccb29b3d03e2ebad8e803 100644 (file)
@@ -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.