]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: fix an ugly cast
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 8 Sep 2023 20:41:21 +0000 (22:41 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 8 Sep 2023 20:41:21 +0000 (22:41 +0200)
commitc5913771a641ec54308ef5054837198be2a6fd63
tree46c2cd2d02a580d86da53537e31bbe0e623f4d61
parentbedefff9e25b6b2bdc13e0268a437f82dc4b4798
Cygwin: fix an ugly cast

fhandler_base::fchown casts any fhandler landing here to a
fhandler_disk_file.  That's ugly and dangerous.  Duplicate
the path_conv info into an explicitly create fhandler_disk_file
instead and call fchmod on that.

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