]> arthur.barton.de Git - netatalk.git/commitdiff
Fix for:
authorfranklahm <franklahm>
Tue, 1 Sep 2009 13:18:17 +0000 (13:18 +0000)
committerfranklahm <franklahm>
Tue, 1 Sep 2009 13:18:17 +0000 (13:18 +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 0489e2d04d4d2caaa3febdb560288919ae788036..a63a37adb1d36d0621559fc53155fdaa002d95e1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: directory.c,v 1.100 2009-09-01 13:15:13 franklahm Exp $
+ * $Id: directory.c,v 1.101 2009-09-01 13:18:17 franklahm Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -1484,7 +1484,7 @@ noucsfallback:
             cdir = extenddir( vol, dir, &ret );
         } /* if (!extend) */
 
-        if ( cdir == NULL ) {
+        if ( cdir == NULL || !ret.u_name ) {
 
             if ( len > 0) {
                 return NULL;