mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
windows-unix-mode-bit-enforcement-20070102
When the Unix mode bits do not include the write bit (0200), then the file is reported to Windows as read-only. This also prevents the acquisition of write-locks. It should also prevent deletion but the code in cm_HaveAccessRights() did not remove the PRSFS_DELETE privilege from the reported rights.
This commit is contained in:
parent
365351a161
commit
56d5e6970d
@ -90,7 +90,7 @@ int cm_HaveAccessRights(struct cm_scache *scp, struct cm_user *userp, afs_uint32
|
|||||||
if (!(scp->unixModeBits & 0400))
|
if (!(scp->unixModeBits & 0400))
|
||||||
*outRightsp &= ~PRSFS_READ;
|
*outRightsp &= ~PRSFS_READ;
|
||||||
if (!(scp->unixModeBits & 0200))
|
if (!(scp->unixModeBits & 0200))
|
||||||
*outRightsp &= ~PRSFS_WRITE;
|
*outRightsp &= ~(PRSFS_WRITE|PRSFS_DELETE);
|
||||||
|
|
||||||
code = 1;
|
code = 1;
|
||||||
/* fall through */
|
/* fall through */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user