remove-vnop-denies-unlink-on-mtpt-20040325

FIXES 3724

if mvstat is 1, we're a mountpoint; simply short circuit EISDIR and return
This commit is contained in:
Derrick Brashear 2004-03-25 22:10:54 +00:00
parent 75f081a027
commit df744ad374

View File

@ -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