1 --- ../openssh-6.4p1/session.c 2013-07-20 05:21:53.000000000 +0200
2 +++ ./session.c 2014-02-07 00:37:57.000000000 +0100
4 temporarily_use_uid(pw);
6 /* Allocate a buffer for the socket name, and format the name. */
7 - auth_sock_dir = xstrdup("/tmp/ssh-XXXXXXXXXX");
8 + auth_sock_dir = xstrdup("@TERMUX_PREFIX@/tmp/ssh-XXXXXXXXXX");
10 /* Create private directory for socket */
11 if (mkdtemp(auth_sock_dir) == NULL) {
13 f = fopen(login_getcapstr(lc, "welcome", "/etc/motd",
16 - f = fopen("/etc/motd", "r");
17 + f = fopen("@TERMUX_PREFIX@/etc/motd", "r");
20 while (fgets(buf, sizeof(buf), f))
23 do_setup_env(Session *s, const char *shell)
32 fprintf(stderr, " %.200s\n", env[i]);
40 * Close any extra file descriptors. Note that there may still be
41 * descriptors left by system functions. They will be closed later.
48 * Close any extra open file descriptors so that we don't have them