]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python/xattr: Properly process system.posix_acl_access
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 5 May 2022 08:42:18 +0000 (20:42 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 10 May 2022 05:19:34 +0000 (05:19 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
python/samba/xattr.py

index 19eb67ab315786a8f6ba7393966f1c4ef782837f..2f4813cba4790744fc432e21bcd9f7cdeea23a1e 100644 (file)
@@ -27,9 +27,9 @@ def copyattrs(frompath, topath):
         # Get the xattr attributes if any
         try:
             attribute = samba.xattr_native.wrap_getxattr(frompath,
-                                                         xattr.XATTR_NTACL_NAME)
+                                                         attr_name)
             samba.xattr_native.wrap_setxattr(topath,
-                                             xattr.XATTR_NTACL_NAME,
+                                             attr_name,
                                              attribute)
         except Exception:
             pass