Quote XAuthLocation before use (#442)
This commit is contained in:
parent
747d7ee66c
commit
4c37fb9792
10
clientloop.c
10
clientloop.c
|
@ -349,7 +349,11 @@ client_x11_get_proto(struct ssh *ssh, const char *display,
|
||||||
/* Don't overflow on long timeouts */
|
/* Don't overflow on long timeouts */
|
||||||
x11_timeout_real = UINT_MAX;
|
x11_timeout_real = UINT_MAX;
|
||||||
}
|
}
|
||||||
|
#ifdef WINDOWS
|
||||||
|
xasprintf(&cmd, "\"%s\" -f %s generate %s %s "
|
||||||
|
#else
|
||||||
xasprintf(&cmd, "%s -f %s generate %s %s "
|
xasprintf(&cmd, "%s -f %s generate %s %s "
|
||||||
|
#endif
|
||||||
"untrusted timeout %u 2>%s",
|
"untrusted timeout %u 2>%s",
|
||||||
xauth_path, xauthfile, display,
|
xauth_path, xauthfile, display,
|
||||||
SSH_X11_PROTO, x11_timeout_real,
|
SSH_X11_PROTO, x11_timeout_real,
|
||||||
|
@ -378,7 +382,11 @@ client_x11_get_proto(struct ssh *ssh, const char *display,
|
||||||
*/
|
*/
|
||||||
if (trusted || generated) {
|
if (trusted || generated) {
|
||||||
xasprintf(&cmd,
|
xasprintf(&cmd,
|
||||||
"%s %s%s list %s 2>" _PATH_DEVNULL,
|
#ifdef WINDOWS
|
||||||
|
"\"%s\" %s%s list %s 2>" _PATH_DEVNULL,
|
||||||
|
#else
|
||||||
|
"%s %s%s list %s 2>" _PATH_DEVNULL,
|
||||||
|
#endif
|
||||||
xauth_path,
|
xauth_path,
|
||||||
generated ? "-f " : "" ,
|
generated ? "-f " : "" ,
|
||||||
generated ? xauthfile : "",
|
generated ? xauthfile : "",
|
||||||
|
|
Loading…
Reference in New Issue