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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user