Pretend chown() is supported
authornorly <ny-git@enpas.org>
Sun, 25 Aug 2019 22:10:18 +0000 (00:10 +0200)
committernorly <ny-git@enpas.org>
Sun, 25 Aug 2019 22:10:18 +0000 (00:10 +0200)
This keeps cp -a from spamming stderr with error messages.

AEpy/AEFuse.py

index 7a1ec4aa9f4678ac09c14c24a7805c812e2a2675..5aeafb4f69075d13f226cd4b2829888b85c0a1c2 100644 (file)
@@ -462,7 +462,8 @@ class AEFuse(Operations):
 
     def chown(self, path, uid, gid):
         # AmigaOS does not know users/groups.
-        raise FuseOSError(EROFS)
+        # Pretend it does, to keep cp from spamming stderr.
+        pass
 
 
     # Called on umount