|
@@ -591,9 +591,9 @@ doauth(int cfd1, char *whichkey)
|
|
|
|
|
|
if (!nopka) {
|
|
|
if (whichkey)
|
|
|
- n = fprint(cfd1, "ssh-userauth K %s %s", user, whichkey);
|
|
|
+ n = fprint(cfd1, "ssh-userauth K %q %q", user, whichkey);
|
|
|
else
|
|
|
- n = fprint(cfd1, "ssh-userauth K %s", user);
|
|
|
+ n = fprint(cfd1, "ssh-userauth K %q", user);
|
|
|
if (n >= 0)
|
|
|
return 0;
|
|
|
}
|
|
@@ -605,13 +605,13 @@ doauth(int cfd1, char *whichkey)
|
|
|
fprint(2, "%s: didn't get password: %r\n", argv0);
|
|
|
return -1;
|
|
|
}
|
|
|
- n = fprint(cfd1, "ssh-userauth k %s %s", user, up->passwd);
|
|
|
+ n = fprint(cfd1, "ssh-userauth k %q %q", user, up->passwd);
|
|
|
if (n >= 0)
|
|
|
return 0;
|
|
|
|
|
|
path[0] = '\0';
|
|
|
fd2path(cfd1, path, sizeof path);
|
|
|
- fprint(2, "%s: auth ctl msg `ssh-userauth k %s <password>' for %s: %r\n",
|
|
|
+ fprint(2, "%s: auth ctl msg `ssh-userauth k %q <password>' for %q: %r\n",
|
|
|
argv0, user, path);
|
|
|
return -1;
|
|
|
}
|