ntdll: Fix name validation for pipes (bug #28995).
valentyn.pavliuchenko at gmail.com
Fri Jun 29 11:20:00 CDT 2012
Pipes have more relaxed naming requirements compared to files.
MSDN documentation for CreateNamedPipe() says:
"...must have the following form:
The pipename part of the name can include any character other than a backslash,
including numbers and special characters. The entire pipe name string can be up
to 256 characters long. Pipe names are not case sensitive".
1. modifies ntdll pipe test to use ">" character in the pipe name
(that is illegal for a file name), so the
case of special characters in the name is now tested.
2. modifies wine_nt_to_unix_file_name() in ntdll to not check pipe
names for file-illegal
Checking for a backslash is absent, since adding it breaks some Wine internals.
This absence won't cause any problems for valid Win32 apps.
dlls/ntdll/directory.c | 10 +++++++++-
dlls/ntdll/tests/pipe.c | 4 ++--
2 files changed, 11 insertions(+), 3 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2613 bytes
Desc: not available
More information about the wine-patches