]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: fhandler_virtual::exists: always set fileid
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 9 Apr 2024 14:52:58 +0000 (16:52 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 9 Apr 2024 15:02:35 +0000 (17:02 +0200)
commit2855c35c41ed5c950e40ce0ae0d99d00185e05ad
tree69e4670767938614d8a6721131e6b11529c22010
parent38b51398359076eed01d8f1b0f9c061d16a658f5
Cygwin: fhandler_virtual::exists: always set fileid

Commit a0a25849f9dd ("Cygwin: fhandler_virtual: move fileid to path_conv
member") broke `ls -l /proc/<PID>'.  Turns out, the commit forgot to set
the fileid in case of a virtual root dir (i. e., returning virt_rootdir)
in fhandlers utilizing fileid.  This crashed opendir() due to a random
fileid.

Make sure to set fileid in any case.

Fixes: a0a25849f9dd ("Cygwin: fhandler_virtual: move fileid to path_conv member")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler/proc.cc
winsup/cygwin/fhandler/process.cc
winsup/cygwin/fhandler/procnet.cc
winsup/cygwin/fhandler/procsysvipc.cc
This page took 0.03051 seconds and 5 git commands to generate.