mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Windows Pageant: quote the pipe path in OpenSSH config fragment.
The pathname of Pageant's named pipe includes the name of the user running it. And Windows usernames are allowed to have spaces in! So the pipe pathname may also have a space, in which case Windows OpenSSH will interpret the spacey pathname as an invalid first half followed by a trailing garbage word. A user reports that quoting the filename makes this work. Since double quotes are an illegal Windows filename character, I think it should therefore do no harm to quote it unconditionally, which is the easiest fix.
This commit is contained in:
parent
9ce5bc401c
commit
60c9350010
@ -1741,7 +1741,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
MB_ICONERROR | MB_OK);
|
||||
return 1;
|
||||
}
|
||||
fprintf(fp, "IdentityAgent %s\n", pipename);
|
||||
fprintf(fp, "IdentityAgent \"%s\"\n", pipename);
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user