]> arthur.barton.de Git - netatalk.git/commitdiff
Merge branch 'nouuidaclcheck'
authorFrank Lahm <franklahm@googlemail.com>
Wed, 7 Sep 2011 10:26:56 +0000 (12:26 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Wed, 7 Sep 2011 10:26:56 +0000 (12:26 +0200)
etc/afpd/acls.c

index c55f8c06919143a9cf5aedfee3810b063b33f532..0612c468a187c7f04f04d46d9d0c34f9f0c96cfb 100644 (file)
@@ -1173,10 +1173,10 @@ static int check_acl_access(const struct vol *vol,
     LOG(log_maxdebug, logtype_afpd, "check_acl_access(dir: \"%s\", path: \"%s\", curdir: \"%s\", 0x%08x)",
         cfrombstr(dir->d_fullpath), path, getcwdpath(), requested_rights);
 
+    /* This check is not used anymore, as OS X Server seems to be ignoring too */
+#if 0
     /* Get uid or gid from UUID */
     EC_ZERO_ERR(getnamefromuuid(uuid, &username, &uuidtype), AFPERR_PARAM);
-    EC_ZERO_LOG_ERR(lstat(path, &st), AFPERR_PARAM);
-
     switch (uuidtype) {
     case UUID_USER:
         break;
@@ -1188,6 +1188,9 @@ static int check_acl_access(const struct vol *vol,
         EC_STATUS(AFPERR_MISC);
         goto EC_CLEANUP;
     }
+#endif
+
+    EC_ZERO_LOG_ERR(lstat(path, &st), AFPERR_PARAM);
 
     is_dir = !strcmp(path, ".");