2015-06-13 01:03:31 +02:00
|
|
|
diff -u -r ../openssh-6.4p1/misc.c ./misc.c
|
|
|
|
--- ../openssh-6.4p1/misc.c 2013-08-08 04:50:06.000000000 +0200
|
|
|
|
+++ ./misc.c 2014-02-03 03:58:35.000000000 +0100
|
|
|
|
@@ -205,7 +205,7 @@
|
|
|
|
struct passwd *copy = xcalloc(1, sizeof(*copy));
|
|
|
|
|
|
|
|
copy->pw_name = xstrdup(pw->pw_name);
|
|
|
|
- copy->pw_passwd = xstrdup(pw->pw_passwd);
|
2020-06-16 10:24:36 +02:00
|
|
|
+ copy->pw_passwd = xstrdup(pw->pw_passwd == NULL ? "*" : pw->pw_passwd);
|
2015-06-13 01:03:31 +02:00
|
|
|
#ifdef HAVE_STRUCT_PASSWD_PW_GECOS
|
|
|
|
copy->pw_gecos = xstrdup(pw->pw_gecos);
|
|
|
|
#endif
|
|
|
|
@@ -948,7 +948,7 @@
|
|
|
|
if (r > 0 && (size_t)r < len)
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
- r = snprintf(s, len, "/tmp/ssh-XXXXXXXXXXXX");
|
|
|
|
+ r = snprintf(s, len, "@TERMUX_PREFIX@/tmp/ssh-XXXXXXXXXXXX");
|
|
|
|
if (r < 0 || (size_t)r >= len)
|
|
|
|
fatal("%s: template string too short", __func__);
|
|
|
|
}
|