aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2020-03-12 09:26:34 +0000
committernicm <nicm>2020-03-12 09:26:34 +0000
commit2a5702a936829c30b1c427028fdb75a21e2e6771 (patch)
tree5aabc5e49ec6339679156bb7dd56bac6e9f3ed2a /tmux.h
parent4eba98313c6f1ddf1070bea8aaf638e8ea455231 (diff)
downloadrtmux-2a5702a936829c30b1c427028fdb75a21e2e6771.tar.gz
rtmux-2a5702a936829c30b1c427028fdb75a21e2e6771.tar.bz2
rtmux-2a5702a936829c30b1c427028fdb75a21e2e6771.zip
When the server socket is given by the user with -S, create it with
umask 177 instead of 117 because it may not be in a safe directory like the default directory in /tmp. The user can chmod it more open after it is created if they want.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 67cecd6b..e4e23fcf 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1577,6 +1577,8 @@ struct client {
#define CLIENT_REDRAWSTATUSALWAYS 0x1000000
#define CLIENT_REDRAWOVERLAY 0x2000000
#define CLIENT_CONTROL_NOOUTPUT 0x4000000
+#define CLIENT_DEFAULTSOCKET 0x8000000
+#define CLIENT_STARTSERVER 0x10000000
#define CLIENT_ALLREDRAWFLAGS \
(CLIENT_REDRAWWINDOW| \
CLIENT_REDRAWSTATUS| \
@@ -2200,7 +2202,7 @@ void server_clear_marked(void);
int server_is_marked(struct session *, struct winlink *,
struct window_pane *);
int server_check_marked(void);
-int server_start(struct tmuxproc *, struct event_base *, int, char *);
+int server_start(struct tmuxproc *, int, struct event_base *, int, char *);
void server_update_socket(void);
void server_add_accept(int);