From: Derrick Brashear Date: Mon, 15 Oct 2007 20:22:43 +0000 (+0000) Subject: STABLE14-darwin-access-avoid-confusing-cp-20071015 X-Git-Tag: openafs-stable-1_4_5pre2~1 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=760120edb408832cc168ac51a3fa706c184cb24c;p=packages%2Fo%2Fopenafs.git STABLE14-darwin-access-avoid-confusing-cp-20071015 FIXES 69363 it wants EPERM; EACCES, and it just retries forever. "no means no. now go away" (cherry picked from commit 38719a218c44dd78300afe179bf051e3fbd08e0f) --- diff --git a/src/afs/DARWIN/osi_vnodeops.c b/src/afs/DARWIN/osi_vnodeops.c index 494a11ecc..7e8b2a97b 100644 --- a/src/afs/DARWIN/osi_vnodeops.c +++ b/src/afs/DARWIN/osi_vnodeops.c @@ -643,7 +643,8 @@ afs_vop_access(ap) if (code) { code= 0; /* if access is ok */ } else { - code = afs_CheckCode(EACCES, &treq, 57); /* failure code */ + /* In 10.4 cp will loop forever on EACCES */ + code = afs_CheckCode(EPERM, &treq, 57); /* failure code */ } out: afs_PutFakeStat(&fakestate);