]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/metadata.py
Ignore lchmod() ENOSYS (i.e. function not implemented)
[bup.git] / lib / bup / metadata.py
index 390c5acd0b3fea214d8ffa5e55374440ebff679e..bef806677220a899b7d5328fc44a2555f9d51767 100644 (file)
@@ -423,7 +423,10 @@ class Metadata:
                     raise
 
         if _have_lchmod:
-            os.lchmod(path, stat.S_IMODE(self.mode))
+            try:
+                os.lchmod(path, stat.S_IMODE(self.mode))
+            except errno.ENOSYS:  # Function not implemented
+                pass
         elif not stat.S_ISLNK(self.mode):
             os.chmod(path, stat.S_IMODE(self.mode))