cachemgr-dont-leak-stat-info-to-clients-not-entitled-to-it-20010605
[openafs.git] / src / afs / VNOPS / afs_vnop_create.c
index b8deaf2..0d42f57 100644 (file)
@@ -177,6 +177,9 @@ tagain:
                if ((amode & VWRITE) || len != 0xffffffff) 
 #endif
                  {
+                   /* needed for write access check */
+                   tvc->parentVnode = adp->fid.Fid.Vnode;
+                   tvc->parentUnique = adp->fid.Fid.Unique;
                    /* need write mode for these guys */
                    if (!afs_AccessOK(tvc, PRSFS_WRITE, &treq, CHECK_MODE_BITS)) {
                        afs_PutVCache(tvc, READ_LOCK);