From ca6a7d15003083b81e2a6d09a74c224c6ce45073 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 8 Dec 2018 20:01:30 +0100 Subject: [PATCH] on linux, symlinks can't have ACLs, see #4044 (cherry picked from commit ca1928c92596d18fd240db604315680145265c43) --- src/borg/platform/linux.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/borg/platform/linux.pyx b/src/borg/platform/linux.pyx index 7b963c9e3..edd83e48b 100644 --- a/src/borg/platform/linux.pyx +++ b/src/borg/platform/linux.pyx @@ -273,6 +273,10 @@ def acl_set(path, item, numeric_owner=False, fd=None): cdef acl_t access_acl = NULL cdef acl_t default_acl = NULL + if stat.S_ISLNK(item.get('mode', 0)): + # Linux does not support setting ACLs on symlinks + return + if fd is None and isinstance(path, str): path = os.fsencode(path) if numeric_owner: