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:
parent
42d0aa4121
commit
8ede2acefd
|
@ -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>
|
2015-04-10 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MAJOR): Bump to 2000.
|
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MAJOR): Bump to 2000.
|
||||||
|
|
|
@ -906,9 +906,9 @@ fhandler_disk_file::fchmod (mode_t mode)
|
||||||
aclp[0].a_perm = (mode >> 6) & S_IRWXO;
|
aclp[0].a_perm = (mode >> 6) & S_IRWXO;
|
||||||
if (nentries > MIN_ACL_ENTRIES
|
if (nentries > MIN_ACL_ENTRIES
|
||||||
&& (idx = searchace (aclp, nentries, CLASS_OBJ)) >= 0)
|
&& (idx = searchace (aclp, nentries, CLASS_OBJ)) >= 0)
|
||||||
aclp[idx].a_perm = (mode >> 6) & S_IRWXO;
|
aclp[idx].a_perm = (mode >> 3) & S_IRWXO;
|
||||||
else
|
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)
|
if ((idx = searchace (aclp, nentries, OTHER_OBJ)) >= 0)
|
||||||
aclp[idx].a_perm = mode & S_IRWXO;
|
aclp[idx].a_perm = mode & S_IRWXO;
|
||||||
if (pc.isdir ())
|
if (pc.isdir ())
|
||||||
|
|
Loading…
Reference in New Issue