1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Merge tag '0.79'

This commit is contained in:
Simon Tatham
2023-08-26 13:16:58 +01:00
5 changed files with 15 additions and 5 deletions

View File

@ -1741,7 +1741,17 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
MB_ICONERROR | MB_OK);
return 1;
}
fprintf(fp, "IdentityAgent \"%s\"\n", pipename);
fputs("IdentityAgent \"", fp);
/* Some versions of Windows OpenSSH prefer / to \ as the path
* separator; others don't mind, but as far as we know, no
* version _objects_ to /, so we use it unconditionally. */
for (const char *p = pipename; *p; p++) {
char c = *p;
if (c == '\\')
c = '/';
fputc(c, fp);
}
fputs("\"\n", fp);
fclose(fp);
}