On Sun, Oct 9, 2022 at 2:06 AM Zebediah Figura zfigura@codeweavers.com wrote:
On 7/21/22 08:37, Jinoh Kang wrote:
From: Jinoh Kang jinoh.kang.kr@gmail.com
On Windows, \Device\NamedPipe\ is the root directory of the named pipe file system (NPFS), and can be used as RootDirectory to skip its path when accessing the NPFS namespace.
This introduces a regression that makes it possible to use \Device\NamedPipe (note the lack of trailing backslash) as RootDirectory as well, since Wine does not distinguish between \Device\NamedPipe (the device itself) and \Device\NamedPipe\ (the root directory of the filesystem).
We should probably fix that first, then. Related questions:
- is \Device\NamedPipe any different from a normal pipe?
Yes, it is. It's a device object.
- is \Device\NamedPipe\ any different from a normal pipe?
Yes, it is. It's a directory of a filesystem, named NPFS. This is the only directory of NPFS. There does not exist a directory with any other pathname for NPFS.
- is "\Device\NamedPipe\foo" a different object than
"\Device\NamedPipe\foo", and, if so, does it behave any differently?
Yes, it is. They are both normal named pipes, each with a unique, different name. Two pathnames you have mentioned are both valid. They are not aliases to each other.