mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
fix Include abs path on Windows
This commit is contained in:
parent
a915f06c78
commit
8145ce25b1
@ -2319,7 +2319,11 @@ process_server_config_line_depth(ServerOptions *options, char *line,
|
|||||||
}
|
}
|
||||||
value++;
|
value++;
|
||||||
found = 0;
|
found = 0;
|
||||||
|
#ifdef WINDOWS
|
||||||
|
if (!path_absolute(arg2) && *arg2 != '~') {
|
||||||
|
#else
|
||||||
if (*arg2 != '/' && *arg2 != '~') {
|
if (*arg2 != '/' && *arg2 != '~') {
|
||||||
|
#endif
|
||||||
xasprintf(&arg, "%s/%s", SSHDIR, arg2);
|
xasprintf(&arg, "%s/%s", SSHDIR, arg2);
|
||||||
} else
|
} else
|
||||||
arg = xstrdup(arg2);
|
arg = xstrdup(arg2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user