diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-07-24 14:36:48 +0900 |
---|---|---|
committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-07-24 20:55:14 +0900 |
commit | f67a5cffe052b9e746f0baf64fb762e8b2de162d (patch) | |
tree | c50aac2679d7563b6cb3b89839fd5210c2e43446 /newlib/libc | |
parent | f21fbcaf583e1cadcbca9e094e269632bf0f2a9d (diff) | |
download | newlib-f67a5cffe052b9e746f0baf64fb762e8b2de162d.zip newlib-f67a5cffe052b9e746f0baf64fb762e8b2de162d.tar.gz newlib-f67a5cffe052b9e746f0baf64fb762e8b2de162d.tar.bz2 |
Cygwin: Fix handling of archetype fhandler in process_fd
Previously, process_fd failed to correctly handle fhandlers using an
archetype. This was due to the missing PATH_OPEN flag in path_conv,
which caused build_fh_pc() to skip archetype initialization. The
root cause was a bug where open() did not set the PATH_OPEN flag
for fhandlers using an archetype.
This patch introduces a new method, path_conv::set_isopen(), to
explicitly set the PATH_OPEN flag in path_flags in fhandler_base::
open_with_arch().
Addresses: https://cygwin.com/pipermail/cygwin/2025-May/258167.html
Fixes: 92ddb7429065 ("(build_pc_pc): Use fh_alloc to create. Set name from fh->dev if appropriate. Generate an archetype or point to one here.")
Reported-by: Christian Franke <Christian.Franke@t-online.de>
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Diffstat (limited to 'newlib/libc')
0 files changed, 0 insertions, 0 deletions