command-not-found: Update with new executables
[termux-packages] / packages / tmux / tmux_c.patch
CommitLineData
59f0d218
FF
1diff -u -r ../tmux-1.9a/tmux.c ./tmux.c
2--- ../tmux-1.9a/tmux.c 2014-02-22 21:48:37.000000000 +0100
3+++ ./tmux.c 2014-02-24 08:56:45.000000000 +0100
4@@ -137,7 +137,7 @@
5 else if ((s = getenv("TMPDIR")) != NULL && *s != '\0')
6 xsnprintf(base, sizeof base, "%s/tmux-%u", s, uid);
7 else
8- xsnprintf(base, sizeof base, "%s/tmux-%u", _PATH_TMP, uid);
9+ xsnprintf(base, sizeof base, "%s/tmux-%u", "@TERMUX_PREFIX@/tmp", uid);
10
11 if (mkdir(base, S_IRWXU) != 0 && errno != EEXIST)
12 return (NULL);