1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

fixed lame valid table

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent 831530d93d
commit 67017619af

View File

@ -63,10 +63,10 @@ void load_case_tables(void)
}
if (!valid_table) {
const char *allowed = "!#$%&'()_-.@^`{}~";
DEBUG(1,("creating lame valid table\n"));
valid_table = malloc(0x10000);
for (i=0;i<256;i++) valid_table[i] =
isalnum(i) && !strchr("*\\/?<>|\":", i);
for (i=0;i<256;i++) valid_table[i] = isalnum(i) || strchr(allowed,i);
for (;i<0x10000;i++) valid_table[i] = 0;
}
}