]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/acls.c
Symlink patch from Anton Starikov
[netatalk.git] / etc / afpd / acls.c
index a3d17f3fef07156cce44f1c47f3bc3e20822d9ca..d0ef6a45f6e79f6de44672b2eba230bec174a2b8 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  $Id: acls.c,v 1.7 2009-11-28 13:06:30 franklahm Exp $
+  $Id: acls.c,v 1.7.2.1 2010-01-02 10:22:32 franklahm Exp $
   Copyright (c) 2008,2009 Frank Lahm <franklahm@gmail.com>
 
   This program is free software; you can redistribute it and/or modify
@@ -583,7 +583,7 @@ static int check_acl_access(const char *path, const uuidp_t uuid, uint32_t reque
     }
 
     /* File or dir */
-    if ((stat(path, &st)) != 0) {
+    if ((lstat(path, &st)) != 0) {
         LOG(log_error, logtype_afpd, "check_access: stat: %s", strerror(errno));
         ret = AFPERR_PARAM;
         goto exit;