mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
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:
parent
12f43b6a76
commit
83db1a90e4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user