From df744ad374e51255883eb69dcf9f226d673af7be Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 25 Mar 2004 22:10:54 +0000 Subject: [PATCH] remove-vnop-denies-unlink-on-mtpt-20040325 FIXES 3724 if mvstat is 1, we're a mountpoint; simply short circuit EISDIR and return --- src/afs/VNOPS/afs_vnop_remove.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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