1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-05 12:22:11 +03:00

Ensure we mangle names ending in '.' in hash2 mangling method.

Jeremy.
(This used to be commit fc2af591f5)
This commit is contained in:
Jeremy Allison
2003-11-18 01:47:27 +00:00
parent e0fd9d28e9
commit 7b39861342

View File

@ -325,7 +325,7 @@ static BOOL is_8_3(const char *name, BOOL check_case, BOOL allow_wildcards)
prefix_len = PTR_DIFF(dot_p, name);
suffix_len = len - (prefix_len+1);
if (prefix_len > 8 || suffix_len > 3) {
if (prefix_len > 8 || suffix_len > 3 || suffix_len == 0) {
return False;
}