]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/directory.c
Changes made by Michel Jouvin - jouvin@lal.in2p3.fr - 23/11/2000
[netatalk.git] / etc / afpd / directory.c
index 81640c46ff50595f45e2d8850382b6f885751ec5..b8dfece090f586cef3f11519f0ab676308800edd 100644 (file)
@@ -943,7 +943,10 @@ int getdirparams(vol, bitmap, upath, dir, st, buf, buflen )
 
        case DIRPBIT_ACCESS :
            utommode( st, &ma );
-#ifdef AFS
+#ifdef HAVE_ACCESS
+           accessmode( upath, &ma, dir );
+#endif HAVE_ACCESS
+#ifdef AFS     /* If only AFS defined, access() works only for AFS filesystems */ 
            afsmode( upath, &ma, dir );
 #endif AFS
            *data++ = ma.ma_user;