diff options
author | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2018-06-28 15:43:13 +0200 |
---|---|---|
committer | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2018-06-28 15:43:14 +0200 |
commit | 92d266b9e75233afd4a1ce663f062b7e9a843e65 (patch) | |
tree | c23159a23239438f10da5f025ca2297ad44ca9d5 /auth-options.c | |
parent | 970f1c25f7c73067f2f07e2e64c88201c90ff490 (diff) | |
parent | 60256f28189c3d0650a78e737eb0ca4753478a4b (diff) |
[ Christian Ehrhardt ]
Fix unintentional restriction of authorized keys environment options
to be alphanumeric (LP: #1771011)
Diffstat (limited to 'auth-options.c')
-rw-r--r-- | auth-options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auth-options.c b/auth-options.c index b528c197a..ef57ebf43 100644 --- a/auth-options.c +++ b/auth-options.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth-options.c,v 1.78 2018/03/14 05:35:40 djm Exp $ */ | 1 | /* $OpenBSD: auth-options.c,v 1.79 2018/04/06 04:15:45 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Damien Miller <djm@mindrot.org> | 3 | * Copyright (c) 2018 Damien Miller <djm@mindrot.org> |
4 | * | 4 | * |
@@ -394,7 +394,7 @@ sshauthopt_parse(const char *opts, const char **errstrp) | |||
394 | goto fail; | 394 | goto fail; |
395 | } | 395 | } |
396 | for (cp = opt; cp < tmp; cp++) { | 396 | for (cp = opt; cp < tmp; cp++) { |
397 | if (!isalnum((u_char)*cp)) { | 397 | if (!isalnum((u_char)*cp) && *cp != '_') { |
398 | free(opt); | 398 | free(opt); |
399 | errstr = "invalid environment string"; | 399 | errstr = "invalid environment string"; |
400 | goto fail; | 400 | goto fail; |