chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / tmux / session.c.patch
1 diff -u -r ../tmux-2.2/session.c ./session.c
2 --- ../tmux-2.2/session.c       2016-01-20 19:00:28.000000000 -0500
3 +++ ./session.c 2016-04-11 05:28:53.669311770 -0400
4 @@ -22,6 +22,7 @@
5  #include <string.h>
6  #include <stdlib.h>
7  #include <unistd.h>
8 +#include <pwd.h>
9  #include <time.h>
10  
11  #include "tmux.h"
12 @@ -340,7 +341,7 @@
13  
14         shell = options_get_string(s->options, "default-shell");
15         if (*shell == '\0' || areshell(shell))
16 -               shell = _PATH_BSHELL;
17 +               shell = getpwuid(getuid())->pw_shell;
18  
19         hlimit = options_get_number(s->options, "history-limit");
20         w = window_create(name, argc, argv, path, shell, cwd, env, s->tio,