diff options
author | Corinna Vinschen <vinschen@redhat.com> | 2019-02-20 13:41:25 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-02-22 05:22:53 +0100 |
commit | 37638c752041d591371900df820f070037878a2d (patch) | |
tree | c568d26fa3747cfe35d86b46df84d5bcc0417245 /servconf.c | |
parent | Revert unintended parts of previous commit. (diff) | |
download | openssh-37638c752041d591371900df820f070037878a2d.tar.xz openssh-37638c752041d591371900df820f070037878a2d.zip |
Cygwin: implement case-insensitive Unicode user and group name matching
The previous revert enabled case-insensitive user names again. This
patch implements the case-insensitive user and group name matching.
To allow Unicode chars, implement the matcher using wchar_t chars in
Cygwin-specific code. Keep the generic code changes as small as possible.
Cygwin: implement case-insensitive Unicode user and group name matching
Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
Diffstat (limited to 'servconf.c')
-rw-r--r-- | servconf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servconf.c b/servconf.c index d9680aba1..4fa896fd4 100644 --- a/servconf.c +++ b/servconf.c @@ -1049,7 +1049,11 @@ match_cfg_line(char **condition, int line, struct connection_info *ci) } if (ci->user == NULL) match_test_missing_fatal("User", "user"); +#ifndef HAVE_CYGWIN if (match_pattern_list(ci->user, arg, 0) != 1) +#else + if (match_pattern_list(ci->user, arg, 1) != 1) +#endif result = 0; else debug("user %.100s matched 'User %.100s' at " |