The Samba-Bugzilla – Attachment 10962 Details for
Bug 11207
handling of trailing period and trailing space is no longer forbidden
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to allow trailing spcace and trailing period in smbd/hash
0002-smbd-mangle-hash2-tailing-period-and-space-are-allow.patch (text/plain), 1.48 KB, created by
Björn Jacke
on 2015-04-17 12:50:33 UTC
(
hide
)
Description:
patch to allow trailing spcace and trailing period in smbd/hash
Filename:
MIME Type:
Creator:
Björn Jacke
Created:
2015-04-17 12:50:33 UTC
Size:
1.48 KB
patch
obsolete
>From e71106998a0bef1b3d4fb112432c85dfcb8d590e Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= <bj@sernet.de> >Date: Fri, 17 Apr 2015 14:44:17 +0200 >Subject: [PATCH 2/2] smbd/mangle/hash2: tailing period and space are allowed > these days > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=11207 > >Signed-off-by: Bjoern Jacke <bj@sernet.de> >--- > source3/smbd/mangle_hash2.c | 22 ---------------------- > 1 file changed, 22 deletions(-) > >diff --git a/source3/smbd/mangle_hash2.c b/source3/smbd/mangle_hash2.c >index ac1f4b0..953e2ca 100644 >--- a/source3/smbd/mangle_hash2.c >+++ b/source3/smbd/mangle_hash2.c >@@ -619,10 +619,6 @@ static bool is_reserved_name(const char *name) > > static bool is_legal_name(const char *name) > { >- const char *dot_pos = NULL; >- bool alldots = True; >- size_t numdots = 0; >- > while (*name) { > if (((unsigned int)name[0]) > 128 && (name[1] != 0)) { > /* Possible start of mb character. */ >@@ -643,27 +639,9 @@ static bool is_legal_name(const char *name) > if (FLAG_CHECK(name[0], FLAG_ILLEGAL)) { > return False; > } >- if (name[0] == '.') { >- dot_pos = name; >- numdots++; >- } else { >- alldots = False; >- } >- if ((name[0] == ' ') && (name[1] == '\0')) { >- /* Can't end in ' ' */ >- return False; >- } > name++; > } > >- if (dot_pos) { >- if (alldots && (numdots == 1 || numdots == 2)) >- return True; /* . or .. is a valid name */ >- >- /* A valid long name cannot end in '.' */ >- if (dot_pos[1] == '\0') >- return False; >- } > return True; > } > >-- >2.3.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11207
:
10961
|
10962
|
10963
|
10964