Bugzilla – Attachment 2960 Details for
Bug 2685
Case sensitive hostname matching
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
make hostname matching really case-insensitive
bz2685.diff (text/plain), 833 bytes, created by
Damien Miller
on 2017-03-10 14:59:13 AEDT
(
hide
)
Description:
make hostname matching really case-insensitive
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2017-03-10 14:59:13 AEDT
Size:
833 bytes
patch
obsolete
>Index: match.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/match.c,v >retrieving revision 1.36 >diff -u -p -r1.36 match.c >--- match.c 10 Mar 2017 03:52:48 -0000 1.36 >+++ match.c 10 Mar 2017 03:58:33 -0000 >@@ -40,9 +40,11 @@ > #include <ctype.h> > #include <stdlib.h> > #include <string.h> >+#include <stdio.h> > > #include "xmalloc.h" > #include "match.h" >+#include "misc.h" > > /* > * Returns true if the given string matches the pattern (which may contain ? >@@ -175,7 +177,13 @@ match_pattern_list(const char *string, c > int > match_hostname(const char *host, const char *pattern) > { >- return match_pattern_list(host, pattern, 1); >+ char *hostcopy = xstrdup(host); >+ int r; >+ >+ lowercase(hostcopy); >+ r = match_pattern_list(hostcopy, pattern, 1); >+ free(hostcopy); >+ return r; > } > > /*
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 Diff
View Attachment As Raw
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 2685
:
2951
| 2960