]> sourceware.org Git - newlib-cygwin.git/commit
Fix file type mode bit handling on object security.
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 3 Sep 2015 17:29:55 +0000 (19:29 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 18 Nov 2015 21:44:33 +0000 (22:44 +0100)
commit645913109673c36cebf19d407a6e3e3a4a6288db
treef972c23f4d79efcc7da83404c6eef8a690e63e3c
parent4dc3deea8949d830c0a1442023bf1335841d5bcf
Fix file type mode bit handling on object security.

* fhandler_tty.cc (fhandler_pty_slave::open): Add S_IFCHR flag
in call to create_object_sd_from_attribute.
(fhandler_pty_slave::fstat): Ditto in call to get_object_attribute.
(fhandler_pty_slave::fchmod): Add an orig_mode flag and ditto for
both calls.
(fhandler_pty_master::setup): Ditto in call to
create_object_sd_from_attribute.
* security.cc (get_object_attribute): Never add S_IFCHR to mode
here.  Let the caller decide.
(create_object_sd_from_attribute): Ditto.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/security.cc
This page took 0.029853 seconds and 5 git commands to generate.