reverted an incorrect fix. What I was trying to do was fix a problem
authorAndrew Tridgell <tridge@samba.org>
Mon, 21 Oct 2002 03:47:51 +0000 (03:47 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 21 Oct 2002 03:47:51 +0000 (03:47 +0000)
with filenames with spaces in mangle_hash.c but the real problem is
that mangle_hash.c assumes that the set of valid characters for 8.3
names is the same as the set of valid characters for long names. Thats
an invalid assumption, with space being the obvious example.

source/lib/util_unistr.c

index 01367ba6992594fa75628a0c0a1a8c82e25b005b..eb47252413133928590182abdbaaceb22daa25e9 100644 (file)
@@ -103,7 +103,7 @@ void init_valid_table(void)
        static int initialised;
        static int mapped_file;
        int i;
-       const char *allowed = ".!#$%&'()_-@^`~ ";
+       const char *allowed = ".!#$%&'()_-@^`~";
 
        if (initialised && mapped_file) return;
        initialised = 1;