From 0f0950e3734c86590590664e50ffb0e327cbc7d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Fri, 17 Apr 2015 14:43:07 +0200 Subject: [PATCH 1/2] smbd/mangle/hash: tailing period and space are allowed these days BUG: https://bugzilla.samba.org/show_bug.cgi?id=11207 Signed-off-by: Bjoern Jacke --- source3/smbd/mangle_hash.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/source3/smbd/mangle_hash.c b/source3/smbd/mangle_hash.c index 46541e9..0d5e5c0 100644 --- a/source3/smbd/mangle_hash.c +++ b/source3/smbd/mangle_hash.c @@ -567,12 +567,6 @@ static NTSTATUS is_valid_name(const smb_ucs2_t *fname, bool allow_wildcards, boo if (!NT_STATUS_IS_OK(ret)) return ret; - /* Name can't end in '.' or ' ' */ - num_ucs2_chars = strlen_w(fname); - if (fname[num_ucs2_chars-1] == UCS2_CHAR('.') || fname[num_ucs2_chars-1] == UCS2_CHAR(' ')) { - return NT_STATUS_UNSUCCESSFUL; - } - str = strdup_w(fname); /* Truncate copy after the first dot. */ -- 2.3.0