]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/dircache.c
Merge master
[netatalk.git] / etc / afpd / dircache.c
index 5a702fa55bfd125f943c4ce37bf12ff4ba8524d5..d3b8b6fc5fea30c64fefe9da4ec7d259fa9c15c4 100644 (file)
@@ -462,7 +462,7 @@ int dircache_add(const struct vol *vol,
         dircache_stat.expunged++;
     }
     key.d_vid = vol->v_vid;
-    key.d_pdid = dir->d_did;
+    key.d_pdid = dir->d_pdid;
     key.d_u_name = dir->d_u_name;
     if ((hn = hash_lookup(index_didname, &key))) {
         /* Found an entry with the same DID/name, delete it */
@@ -594,6 +594,7 @@ int dircache_init(int reqsize)
     rootParent.d_fullpath = bfromcstr("ROOT_PARENT");
     rootParent.d_m_name = bfromcstr("ROOT_PARENT");
     rootParent.d_u_name = rootParent.d_m_name;
+    rootParent.d_rights_cache = 0xffffffff;
 
     return 0;
 }