Skip to content

Commit a582b62

Browse files
author
nicm
committed
Accidentally turned off pledge, turn it back on.
1 parent 14d90e4 commit a582b62

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ client_main(struct event_base *base, int argc, char **argv, int flags)
289289
*
290290
* "sendfd" is dropped later in client_dispatch_wait().
291291
*/
292-
if (0 && pledge("stdio unix sendfd proc exec tty", NULL) != 0)
292+
if (pledge("stdio unix sendfd proc exec tty", NULL) != 0)
293293
fatal("pledge failed");
294294

295295
/* Free stuff that is not used in the client. */
@@ -541,7 +541,7 @@ client_dispatch_wait(struct imsg *imsg)
541541
* get the first message from the server.
542542
*/
543543
if (!pledge_applied) {
544-
if (0 && pledge("stdio unix proc exec tty", NULL) != 0)
544+
if (pledge("stdio unix proc exec tty", NULL) != 0)
545545
fatal("pledge failed");
546546
pledge_applied = 1;
547547
};

server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
175175

176176
if (debug_level > 3)
177177
tty_create_log();
178-
if (0 && pledge("stdio rpath wpath cpath fattr unix recvfd proc exec tty "
178+
if (pledge("stdio rpath wpath cpath fattr unix recvfd proc exec tty "
179179
"ps", NULL) != 0)
180180
fatal("pledge failed");
181181

tmux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ main(int argc, char **argv)
255255
if (shell_cmd != NULL && argc != 0)
256256
usage();
257257

258-
if (0 && pledge("stdio rpath wpath cpath flock fattr unix sendfd recvfd "
258+
if (pledge("stdio rpath wpath cpath flock fattr unix sendfd recvfd "
259259
"proc exec tty ps", NULL) != 0)
260260
err(1, "pledge");
261261

0 commit comments

Comments
 (0)