X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Ftest_support.c;h=bc7fde192d8dc922d85994afeb4544514ff26b03;hb=e14f2a9299f809e7f82b5eccfbfc6df8e9229920;hp=313ad0858632c20cf060cbc0d86ee501cd526c87;hpb=76689b1cac26c545260568997ae7fb949846f302;p=wimlib diff --git a/src/test_support.c b/src/test_support.c index 313ad085..bc7fde19 100644 --- a/src/test_support.c +++ b/src/test_support.c @@ -669,9 +669,8 @@ is_name_valid_in_win32_namespace(const utf16lechar *name) if (!is_valid_windows_filename_char(*p)) return false; - /* 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. */ /* The name can't be one of the reserved names (case insensitively). */ for (size_t i = 0; i < ARRAY_LEN(forbidden_names); i++)