summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2015-11-15 14:32:48 +0000
committernicm <nicm>2015-11-15 14:32:48 +0000
commita582b622879714b0a100e8c7d3054f5a03476ca1 (patch)
tree75526feb1593c2c6a20b5a0658daee8bd8128ade
parent14d90e4901ef943e57e5dada7a0f53b2dc208571 (diff)
Accidentally turned off pledge, turn it back on.
-rw-r--r--client.c4
-rw-r--r--server.c2
-rw-r--r--tmux.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/client.c b/client.c
index a6423630..bc934d33 100644
--- a/client.c
+++ b/client.c
@@ -289,7 +289,7 @@ client_main(struct event_base *base, int argc, char **argv, int flags)
*
* "sendfd" is dropped later in client_dispatch_wait().
*/
- if (0 && pledge("stdio unix sendfd proc exec tty", NULL) != 0)
+ if (pledge("stdio unix sendfd proc exec tty", NULL) != 0)
fatal("pledge failed");
/* Free stuff that is not used in the client. */
@@ -541,7 +541,7 @@ client_dispatch_wait(struct imsg *imsg)
* get the first message from the server.
*/
if (!pledge_applied) {
- if (0 && pledge("stdio unix proc exec tty", NULL) != 0)
+ if (pledge("stdio unix proc exec tty", NULL) != 0)
fatal("pledge failed");
pledge_applied = 1;
};
diff --git a/server.c b/server.c
index 160b8cac..2808c0cc 100644
--- a/server.c
+++ b/server.c
@@ -175,7 +175,7 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
if (debug_level > 3)
tty_create_log();
- if (0 && pledge("stdio rpath wpath cpath fattr unix recvfd proc exec tty "
+ if (pledge("stdio rpath wpath cpath fattr unix recvfd proc exec tty "
"ps", NULL) != 0)
fatal("pledge failed");
diff --git a/tmux.c b/tmux.c
index 3f110156..5429a7cb 100644
--- a/tmux.c
+++ b/tmux.c
@@ -255,7 +255,7 @@ main(int argc, char **argv)
if (shell_cmd != NULL && argc != 0)
usage();
- if (0 && pledge("stdio rpath wpath cpath flock fattr unix sendfd recvfd "
+ if (pledge("stdio rpath wpath cpath flock fattr unix sendfd recvfd "
"proc exec tty ps", NULL) != 0)
err(1, "pledge");