On Wed Dec 14 18:41:55 2022 +0000, **** wrote:
Paul Gofman replied on the mailing list:
On 12/14/22 12:04, Zebediah Figura (@zfigura) wrote: > On Wed Dec 14 07:48:00 2022 +0000, eric pouech wrote: >> These handles are created by Wine when inheriting unix's fd 0,1,2. So >> they don't really exist per se on Windows. >> Currently, all NtQueryInformation returning a name fail on such handles. >> Please advise which name should be exposed? > Well, I mean it's always possible to query the name of an open file, right? > > It's unfortunate that POSIX doesn't provide an API for this, but in the absence of that, it still seems to me like using platform-specific APIs is the right thing to do. Or, failing that, perhaps we should provide a fake name, like an empty string. > This is probably the third approach to this issue. Just FYI, there is Gabriel's patch which is now in Proton: https://github.com/ValveSoftware/wine/commit/e9565a4160533f5236e635849495d4203f6853b7. That was sent upstream back then but didn't go in, there could be some conversation about that in wine-devel.
My patch is also in wine-staging, but I just checked, apparently it's disabled now (didn't realize it before, maybe I can try to rebase it but that depends how much the server code changed): [server-unix_name](https://gitlab.winehq.org/wine/wine-staging/-/blob/master/patches/server-uni...)
If someone wants to try to upstream it please feel free to, same as the other wine-staging patches from me. But obviously after code freeze though.