fix Include abs path on Windows

This commit is contained in:
Tess Gauthier 2024-12-09 17:20:40 -05:00
parent a915f06c78
commit 8145ce25b1

View File

@ -2319,7 +2319,11 @@ process_server_config_line_depth(ServerOptions *options, char *line,
}
value++;
found = 0;
#ifdef WINDOWS
if (!path_absolute(arg2) && *arg2 != '~') {
#else
if (*arg2 != '/' && *arg2 != '~') {
#endif
xasprintf(&arg, "%s/%s", SSHDIR, arg2);
} else
arg = xstrdup(arg2);