Fix afs_AccessOK for dropbox case
authorAndrew Deason <adeason@sinenomine.net>
Fri, 22 Jan 2010 01:42:33 +0000 (20:42 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Fri, 22 Jan 2010 18:49:48 +0000 (10:49 -0800)
commit3f89c0feae89e9a255afb8a7f08995412a3f1b79
tree1cf60ce1a476ba881bc3ef6721ac2684d3e80c12
parentcb4b62a40352ccebae3a299f4327fa70fc7a0c5c
Fix afs_AccessOK for dropbox case

afs_AccessOK did not check for if we have 'i' rights on a directory, nor
if we were the owner of a file, if we were only checking PRSFS_READ or
PRSFS_WRITE. Thus, it does not correctly address the 'dropbox'
permissions case (if you are the owner of a file and have insert
permissions, you get implicit 'r' and 'w').

Fix this to check for 'i' and ownership when we need to, so the dropbox
special-case check works as intended.

FIXES 126216

Change-Id: Ib629bc30b73bc3965e777747067259451f0adff6
Reviewed-on: http://gerrit.openafs.org/1143
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/VNOPS/afs_vnop_access.c