DEVEL15-darwin-modify-cp-workaround-20071022

more work will be needed to fool finder into just copying the d**n file, since
it's checking too hard.


(cherry picked from commit 6aaca73002)
This commit is contained in:
Derrick Brashear 2007-10-23 01:31:23 +00:00
parent 12f43b6a76
commit 83db1a90e4

View File

@ -643,8 +643,14 @@ afs_vop_access(ap)
if (code) {
code= 0; /* if access is ok */
} else {
/* In 10.4 cp will loop forever on EACCES */
code = afs_CheckCode(EPERM, &treq, 57); /* failure code */
#if defined(AFS_DARWIN80_ENV) && !defined(AFS_DARWIN90_ENV)
if (ap->a_action == KAUTH_VNODE_READ_DATA) {
/* In 10.4 cp will loop forever on EACCES */
code = afs_CheckCode(EACCES, &treq, 57);
} else
/* but kinit wants EACCES or it gets dumb */
#endif
code = afs_CheckCode(EACCES, &treq, 57); /* failure code */
}
out:
afs_PutFakeStat(&fakestate);