On 10/10/22 10:22, Jin-oh Kang wrote:
This is a previous iteration of the patch that attempts to fix both at once:
https://www.winehq.org/pipermail/wine-devel/2022-March/211849.html
This patch does not significantly from the patch mentioned in https://bugs.winehq.org/show_bug.cgi?id=52105.
The patch apparently never got merged becuase it involves a hack to differentiate \Device\NamedPipe\ and \Device\NamedPipe. The hack exploits the fact that `!name->len && name->str` when the path ends with a trailing slash. Properly differentiating the two would at least involve changes to the `lookup_name` function's parameters.
Well, yeah, we should probably fix that too, then.
Actually implementing \Device\NamedPipe's directory semantics (i.e. listing) would involve further changes to Wine's object manager emulation.
Well, we'd need to hook up NtQueryDirectoryFile to fd_ops for device files, but I don't think we'd need anything more drastic than that. That said, we'd also want tests, and probably to defer this until we find something that needs it...