mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-12 03:00:26 +09:00
config: Skip the rest of the line for Match exec
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
f46eff79e2
commit
ed8284ab09
16
src/config.c
16
src/config.c
@@ -499,6 +499,22 @@ ssh_config_parse_line(ssh_session session,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MATCH_EXEC:
|
case MATCH_EXEC:
|
||||||
|
/* Skip to the end of line as unsupported */
|
||||||
|
p = ssh_config_get_cmd(&s);
|
||||||
|
if (p == NULL || p[0] == '\0') {
|
||||||
|
SSH_LOG(SSH_LOG_WARN, "line %d: Match keyword "
|
||||||
|
"'%s' requires argument", count, p2);
|
||||||
|
SAFE_FREE(x);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
args++;
|
||||||
|
SSH_LOG(SSH_LOG_WARN,
|
||||||
|
"line %d: Unsupported Match keyword '%s', ignoring",
|
||||||
|
count,
|
||||||
|
p2);
|
||||||
|
result = 0;
|
||||||
|
break;
|
||||||
|
|
||||||
case MATCH_ORIGINALHOST:
|
case MATCH_ORIGINALHOST:
|
||||||
case MATCH_LOCALUSER:
|
case MATCH_LOCALUSER:
|
||||||
/* Skip one argument */
|
/* Skip one argument */
|
||||||
|
|||||||
Reference in New Issue
Block a user