mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
config: Also tokenize on equal sign.
The ssh config specifies it as a valid separator.
BUG: https://red.libssh.org/issues/166
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 52968b1a11
)
This commit is contained in:
committed by
Andreas Schneider
parent
df3d53e561
commit
31ded2070e
@@ -128,7 +128,7 @@ static char *ssh_config_get_token(char **str) {
|
|||||||
c = ssh_config_get_cmd(str);
|
c = ssh_config_get_cmd(str);
|
||||||
|
|
||||||
for (r = c; *c; c++) {
|
for (r = c; *c; c++) {
|
||||||
if (isblank(*c)) {
|
if (isblank(*c) || *c == '=') {
|
||||||
*c = '\0';
|
*c = '\0';
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user