- /* There can't be a trailing dot or space. */
- if (p[-1] == cpu_to_le16('.') || p[-1] == cpu_to_le16(' '))
- return false;
+ /* Note: a trailing dot or space is permitted, even though on Windows
+ * such a file can only be accessed using a WinNT-style path. */