summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-11-18 01:47:27 +0000
committerJeremy Allison <jra@samba.org>2003-11-18 01:47:27 +0000
commit7b39861342279a3ecfb4b2b854162f2ec602afbd (patch)
tree9bdb9cff9675510e03b0e4c47df34bfc81dde8ec
parente0fd9d28e90dbc6dab9a0d17e2f0403fa2f21e98 (diff)
downloadsamba-7b39861342279a3ecfb4b2b854162f2ec602afbd.tar.gz
samba-7b39861342279a3ecfb4b2b854162f2ec602afbd.tar.bz2
samba-7b39861342279a3ecfb4b2b854162f2ec602afbd.zip
Ensure we mangle names ending in '.' in hash2 mangling method.
Jeremy. (This used to be commit fc2af591f5a2b08caa7389150c8cc5e298bd0ed4)
-rw-r--r--source3/smbd/mangle_hash2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/mangle_hash2.c b/source3/smbd/mangle_hash2.c
index 7e7bc8c68c..8dfa84d054 100644
--- a/source3/smbd/mangle_hash2.c
+++ b/source3/smbd/mangle_hash2.c
@@ -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;
}