]> arthur.barton.de Git - netatalk.git/commitdiff
Fix for (last fix applied to wrong if test):
authorfranklahm <franklahm>
Tue, 1 Sep 2009 13:55:55 +0000 (13:55 +0000)
committerfranklahm <franklahm>
Tue, 1 Sep 2009 13:55:55 +0000 (13:55 +0000)
Fix access check bug for Netatalk private folders and vetoed folders.
http://thread.gmane.org/gmane.network.netatalk.devel/8878
http://thread.gmane.org/gmane.network.netatalk.devel/8881

etc/afpd/directory.c

index a63a37adb1d36d0621559fc53155fdaa002d95e1..b3a36367682b7e2e8640c3c5ae7435cd5dbb23f9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: directory.c,v 1.101 2009-09-01 13:18:17 franklahm Exp $
+ * $Id: directory.c,v 1.102 2009-09-01 13:55:55 franklahm Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -1484,9 +1484,9 @@ noucsfallback:
             cdir = extenddir( vol, dir, &ret );
         } /* if (!extend) */
 
-        if ( cdir == NULL || !ret.u_name ) {
+        if ( cdir == NULL ) {
 
-            if ( len > 0) {
+            if ( len > 0 || !ret.u_name ) {
                 return NULL;
             }