From 08ddd9918a95f95be2b32e095a3cddde47055f60 Mon Sep 17 00:00:00 2001 From: Frank Lahm Date: Tue, 16 Nov 2010 17:41:46 +0100 Subject: [PATCH] Another fix for ACL and symlinks --- libatalk/acl/unix.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libatalk/acl/unix.c b/libatalk/acl/unix.c index 9b9e394b..be422aac 100644 --- a/libatalk/acl/unix.c +++ b/libatalk/acl/unix.c @@ -47,7 +47,12 @@ int get_nfsv4_acl(const char *name, ace_t **retAces) LOG(log_warning, logtype_afpd, "get_nfsv4_acl(\"%s/%s\"): %s", getcwdpath(), name, strerror(errno)); return -1; } - if ( ! (S_ISREG(st.st_mode) || S_ISDIR(st.st_mode) || S_ISLNK(st.st_mode))) { + + if (S_ISLNK(st.st_mode)) + /* sorry, no ACLs for symlinks */ + return 0; + + if ( ! (S_ISREG(st.st_mode) || S_ISDIR(st.st_mode))) { LOG(log_warning, logtype_afpd, "get_nfsv4_acl(\"%s/%s\"): special", getcwdpath(), name); return 0; } -- 2.39.2