]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-darwin-access-avoid-confusing-cp-20071015
authorDerrick Brashear <shadow@dementia.org>
Mon, 15 Oct 2007 20:22:43 +0000 (20:22 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 15 Oct 2007 20:22:43 +0000 (20:22 +0000)
FIXES 69363

it wants EPERM; EACCES, and it just retries forever.

"no means no. now go away"

(cherry picked from commit 38719a218c44dd78300afe179bf051e3fbd08e0f)

src/afs/DARWIN/osi_vnodeops.c

index 494a11ecca6ecb01fafe08bb221390109a528308..7e8b2a97b9d2bfe9342784e86e6f334987b00e88 100644 (file)
@@ -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);