summaryrefslogtreecommitdiff
path: root/source3/smbd/mangle_hash2.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-11-18 01:47:15 +0000
committerJeremy Allison <jra@samba.org>2003-11-18 01:47:15 +0000
commit5e9265c997fef8193345bf3a4cad2bf19796ed01 (patch)
tree187dc2904d144030b5daa6bea20257b1eed23f56 /source3/smbd/mangle_hash2.c
parentc86a6b04c8fc279548f3a2a8fe638450c72e15c5 (diff)
downloadsamba-5e9265c997fef8193345bf3a4cad2bf19796ed01.tar.gz
samba-5e9265c997fef8193345bf3a4cad2bf19796ed01.tar.bz2
samba-5e9265c997fef8193345bf3a4cad2bf19796ed01.zip
Ensure we mangle names ending in '.' in hash2 mangling method.
Jeremy. (This used to be commit 9b50fd8cfc36c817177103b07e7b8a3952e641c7)
Diffstat (limited to 'source3/smbd/mangle_hash2.c')
-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;
}