]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/file.c
Fix for filesystem without NFSv4 ACL support on Solaris, Bug ID #3428389
[netatalk.git] / etc / afpd / file.c
index 8402ebf164dcb81611b38402181eabdfc34d8088..36798904ad0802b9d5d89ca25d17432f456be6af 100644 (file)
@@ -394,9 +394,9 @@ int getmetadata(struct vol *vol,
             /* FIXME do we want a visual clue if the file is read only
              */
             struct maccess     ma;
-            accessmode( ".", &ma, dir , NULL);
+            accessmode(vol, ".", &ma, dir , NULL);
             if ((ma.ma_user & AR_UWRITE)) {
-               accessmode( upath, &ma, dir , st);
+               accessmode(vol, upath, &ma, dir , st);
                if (!(ma.ma_user & AR_UWRITE)) {
                        ashort |= htons(ATTRBIT_NOWRITE);
                 }
@@ -563,7 +563,7 @@ int getmetadata(struct vol *vol,
             break;
         case FILPBIT_UNIXPR :
             /* accessmode may change st_mode with ACLs */
-            accessmode( upath, &ma, dir , st);
+            accessmode(vol, upath, &ma, dir , st);
 
             aint = htonl(st->st_uid);
             memcpy( data, &aint, sizeof( aint ));