]> 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>
Thu, 3 Sep 2015 17:29:55 +0000 (19:29 +0200)
commitf1c298977e1078a7ad23970f34c3bd56ce863df0
tree5c6f2e66c2dc8e2546ed0a59d87371208a60e640
parente2284200d477b65091e68e5e5addb91e94882e01
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.
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/security.cc
This page took 0.029203 seconds and 5 git commands to generate.