diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-04-11 13:35:28 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-04-11 13:35:28 +0000 |
commit | 4c889cb8b6ebaf73fd4034c590b758c367b69bae (patch) | |
tree | 19f0dd876aa3cd3f94632580d19a702fb8b97a8b | |
parent | bf9cb3c5f3c5096bcf25a16f63ae18dad73bbef7 (diff) | |
download | samba-4c889cb8b6ebaf73fd4034c590b758c367b69bae.tar.gz samba-4c889cb8b6ebaf73fd4034c590b758c367b69bae.tar.bz2 samba-4c889cb8b6ebaf73fd4034c590b758c367b69bae.zip |
don't treat '.' as FLAG_ASCII, instead handle it separately
(This used to be commit ecdddd674f2ffad16eaa01a68c9c91ff3b355b3f)
-rw-r--r-- | source3/smbd/mangle_hash2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/mangle_hash2.c b/source3/smbd/mangle_hash2.c index 0bd538d2f4..8b4b0f478d 100644 --- a/source3/smbd/mangle_hash2.c +++ b/source3/smbd/mangle_hash2.c @@ -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; } |