Fix typo in new fchmod implementation

* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Fix typo in
	mask computation.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2015-04-11 16:03:18 +02:00
parent 42d0aa4121
commit 8ede2acefd
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2015-04-11 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Fix typo in
mask computation.
2015-04-10 Corinna Vinschen <corinna@vinschen.de>
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MAJOR): Bump to 2000.

View File

@ -906,9 +906,9 @@ fhandler_disk_file::fchmod (mode_t mode)
aclp[0].a_perm = (mode >> 6) & S_IRWXO;
if (nentries > MIN_ACL_ENTRIES
&& (idx = searchace (aclp, nentries, CLASS_OBJ)) >= 0)
aclp[idx].a_perm = (mode >> 6) & S_IRWXO;
aclp[idx].a_perm = (mode >> 3) & S_IRWXO;
else
aclp[1].a_perm = (mode >> 6) & S_IRWXO;
aclp[1].a_perm = (mode >> 3) & S_IRWXO;
if ((idx = searchace (aclp, nentries, OTHER_OBJ)) >= 0)
aclp[idx].a_perm = mode & S_IRWXO;
if (pc.isdir ())