1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

don't treat '.' as FLAG_ASCII, instead handle it separately

(This used to be commit ecdddd674f)
This commit is contained in:
Andrew Tridgell 2002-04-11 13:35:28 +00:00
parent bf9cb3c5f3
commit 4c889cb8b6

View File

@ -283,7 +283,7 @@ static BOOL is_8_3(const char *name, BOOL check_case)
/* the length are all OK. Now check to see if the characters themselves are OK */
for (i=0; name[i]; i++) {
/* note that we allow wildcard petterns! */
if (!FLAG_CHECK(name[i], FLAG_ASCII|FLAG_WILDCARD)) {
if (!FLAG_CHECK(name[i], FLAG_ASCII|FLAG_WILDCARD) && name[i] != '.') {
return False;
}
}
@ -513,7 +513,7 @@ static void init_tables(void)
(i >= 'A' && i <= 'Z')) {
char_flags[i] |= (FLAG_ASCII | FLAG_BASECHAR);
}
if (strchr("._-$~", i)) {
if (strchr("_-$~", i)) {
char_flags[i] |= FLAG_ASCII;
}