|
Sven Lankes |
73482c |
diff --git a/GNUmakefile b/GNUmakefile
|
|
Sven Lankes |
73482c |
index 5e7b6f3..c11120e 100644
|
|
Sven Lankes |
580ca5 |
--- a/GNUmakefile
|
|
Sven Lankes |
580ca5 |
+++ b/GNUmakefile
|
|
Sven Lankes |
73482c |
@@ -53,7 +53,7 @@ endif
|
|
Sven Lankes |
580ca5 |
|
|
Sven Lankes |
73482c |
PREFIX?= /usr
|
|
Sven Lankes |
580ca5 |
INSTALLDIR= install -d
|
|
Sven Lankes |
580ca5 |
-INSTALLBIN= install -g bin -o root -m 555
|
|
Sven Lankes |
73482c |
+INSTALLBIN= install -g tmux -o root -m 2755
|
|
Sven Lankes |
580ca5 |
INSTALLMAN= install -g bin -o root -m 444
|
|
Sven Lankes |
580ca5 |
|
|
Sven Lankes |
580ca5 |
SRCS= $(shell echo *.c|sed 's|osdep-[a-z0-9]*.c||g')
|
|
Sven Lankes |
73482c |
diff --git a/Makefile b/Makefile
|
|
Sven Lankes |
73482c |
index c5b1ece..9cb822a 100644
|
|
Sven Lankes |
580ca5 |
--- a/Makefile
|
|
Sven Lankes |
580ca5 |
+++ b/Makefile
|
|
Sven Lankes |
73482c |
@@ -49,7 +49,7 @@ CFLAGS+= -Wno-pointer-sign
|
|
Sven Lankes |
580ca5 |
|
|
Sven Lankes |
580ca5 |
PREFIX?= /usr
|
|
Sven Lankes |
580ca5 |
INSTALLDIR= install -d
|
|
Sven Lankes |
580ca5 |
-INSTALLBIN= install -g bin -o root -m 555
|
|
Sven Lankes |
73482c |
+INSTALLBIN= install -g tmux -o root -m 2755
|
|
Sven Lankes |
580ca5 |
INSTALLMAN= install -g bin -o root -m 444
|
|
Sven Lankes |
580ca5 |
|
|
Sven Lankes |
580ca5 |
SRCS!= echo *.c|sed 's|osdep-[a-z0-9]*.c||g'
|
|
Sven Lankes |
73482c |
diff --git a/compat.h b/compat.h
|
|
Sven Lankes |
73482c |
index 68fde0a..d63e7d3 100644
|
|
Sven Lankes |
580ca5 |
--- a/compat.h
|
|
Sven Lankes |
580ca5 |
+++ b/compat.h
|
|
Sven Lankes |
73482c |
@@ -26,6 +26,7 @@ typedef uint64_t u_int64_t;
|
|
Sven Lankes |
580ca5 |
#ifndef HAVE_PATHS_H
|
|
Sven Lankes |
580ca5 |
#define _PATH_BSHELL "/bin/sh"
|
|
Sven Lankes |
73482c |
#define _PATH_TMP "/tmp/"
|
|
Sven Lankes |
580ca5 |
+#define _PATH_VARRUN "/var/run/"
|
|
Sven Lankes |
580ca5 |
#define _PATH_DEVNULL "/dev/null"
|
|
Sven Lankes |
580ca5 |
#define _PATH_TTY "/dev/tty"
|
|
Sven Lankes |
580ca5 |
#define _PATH_DEV "/dev/"
|
|
Sven Lankes |
73482c |
diff --git a/tmux.c b/tmux.c
|
|
Sven Lankes |
73482c |
index b590ec1..8c07180 100644
|
|
Sven Lankes |
580ca5 |
--- a/tmux.c
|
|
Sven Lankes |
580ca5 |
+++ b/tmux.c
|
|
Sven Lankes |
73482c |
@@ -264,7 +264,7 @@ makesockpath(const char *label)
|
|
Sven Lankes |
580ca5 |
u_int uid;
|
|
Sven Lankes |
580ca5 |
|
|
Sven Lankes |
580ca5 |
uid = getuid();
|
|
Sven Lankes |
580ca5 |
- xsnprintf(base, MAXPATHLEN, "%s/tmux-%d", _PATH_TMP, uid);
|
|
Sven Lankes |
580ca5 |
+ xsnprintf(base, MAXPATHLEN, "%s/%s/%s-%d", _PATH_VARRUN, __progname, __progname, uid);
|
|
Sven Lankes |
580ca5 |
|
|
Sven Lankes |
580ca5 |
if (mkdir(base, S_IRWXU) != 0 && errno != EEXIST)
|
|
Sven Lankes |
580ca5 |
return (NULL);
|