]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/fork.c
Decouple struct ofork from struct dir, replace ofork.of_dir with ofork.of_did which...
[netatalk.git] / etc / afpd / fork.c
index e8c019e1093cf8723e839daa62fc8a8b9fa493be..f4d0d04cbee4c9f4ee93952c35469010e8f0b688 100644 (file)
@@ -73,7 +73,7 @@ static int getforkparams(struct ofork *ofork, u_int16_t bitmap, char *buf, size_
     }
 
     vol = ofork->of_vol;
-    dir = ofork->of_dir;
+    dir = dirlookup(vol, ofork->of_did);
 
     if (NULL == (path.u_name = mtoupath(vol, of_name(ofork), dir->d_did, utf8_encoding()))) {
         return( AFPERR_MISC );