diff --git a/src/afs/VNOPS/afs_vnop_remove.c b/src/afs/VNOPS/afs_vnop_remove.c index 65e4c0006d..9c52ad4611 100644 --- a/src/afs/VNOPS/afs_vnop_remove.c +++ b/src/afs/VNOPS/afs_vnop_remove.c @@ -279,6 +279,15 @@ OSI_VC_DECL(adp); #endif return code; } + + if (adp->mvstat == 1) { +#ifdef AFS_OSF_ENV + afs_PutVCache(adp); + afs_PutVCache(tvc); +#endif + return EISDIR; + } + if (strlen(aname) > AFSNAMEMAX) { afs_PutFakeStat(&fakestate); #ifdef AFS_OSF_ENV