]> arthur.barton.de Git - netatalk.git/commitdiff
Since it seems Kevin Myer's patch is primarily a solution for linux users,
authoritlm019 <itlm019>
Wed, 10 Jan 2001 23:35:40 +0000 (23:35 +0000)
committeritlm019 <itlm019>
Wed, 10 Jan 2001 23:35:40 +0000 (23:35 +0000)
I've modified it so that it only takes effect if linux is the detected O/S.

etc/afpd/directory.c

index 63cdbf1118a45fd76783faf171ae7e113765214d..eb91a13be015c00275799cf5256ec750375d338d 100644 (file)
@@ -956,9 +956,11 @@ int getdirparams(vol, bitmap, upath, dir, st, buf, buflen )
 
        case DIRPBIT_ACCESS :
            utommode( st, &ma );
-/* #ifdef HAVE_ACCESS
+#ifndef SENDFILE_FLAVOR_LINUX /* ignore this section if it's linux */
+#ifdef HAVE_ACCESS
            accessmode( upath, &ma, dir );
-#endif HAVE_ACCESS */
+#endif HAVE_ACCESS
+#endif SENDFILE_FLAVOR_LINUX
 #ifdef AFS     /* If only AFS defined, access() works only for AFS filesystems */ 
            afsmode( upath, &ma, dir );
 #endif AFS