aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 f3724d17..ccc58fb4 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");
#endif
@@ -545,7 +545,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 190dcfac..4e2304b3 100644
--- a/server.c
+++ b/server.c
@@ -176,7 +176,7 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
tty_create_log();
#ifdef __OpenBSD__
- 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");
#endif
diff --git a/tmux.c b/tmux.c
index 9e5ddb66..c88b119d 100644
--- a/tmux.c
+++ b/tmux.c
@@ -261,7 +261,7 @@ main(int argc, char **argv)
usage();
#ifdef __OpenBSD__
- 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");
#endif