Gabriel Ivăncescu gabrielopcode@gmail.com writes:
On 29/04/2021 19:58, Alexandre Julliard wrote:
Gabriel Ivăncescu gabrielopcode@gmail.com writes:
As they are useless anyway, and have inconsistencies, plus not useful to new code that assumes there's not any on the unix side. See: https://www.winehq.org/pipermail/wine-devel/2021-April/185850.html
Actually, trailing slashes are in general not allowed on NT names, we have some todo tests about that. A single trailing slash on a directory name is OK, and I think your code should deal with that.
What about unix names? I'm only stripping it from unix names.
If so, should I handle any amount of trailing slashes on unix names, or just one?
If the checks on the NT side are done correctly there can be at most one. I'm not convinced that it's necessary to remove it.