mirror of
https://github.com/tmux/tmux.git
synced 2025-04-10 02:58:50 +00:00
Accidentally turned off pledge, turn it back on.
This commit is contained in:
parent
14d90e4901
commit
a582b62287
4
client.c
4
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().
|
* "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");
|
fatal("pledge failed");
|
||||||
|
|
||||||
/* Free stuff that is not used in the client. */
|
/* 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.
|
* get the first message from the server.
|
||||||
*/
|
*/
|
||||||
if (!pledge_applied) {
|
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");
|
fatal("pledge failed");
|
||||||
pledge_applied = 1;
|
pledge_applied = 1;
|
||||||
};
|
};
|
||||||
|
2
server.c
2
server.c
@ -175,7 +175,7 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
|
|||||||
|
|
||||||
if (debug_level > 3)
|
if (debug_level > 3)
|
||||||
tty_create_log();
|
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)
|
"ps", NULL) != 0)
|
||||||
fatal("pledge failed");
|
fatal("pledge failed");
|
||||||
|
|
||||||
|
2
tmux.c
2
tmux.c
@ -255,7 +255,7 @@ main(int argc, char **argv)
|
|||||||
if (shell_cmd != NULL && argc != 0)
|
if (shell_cmd != NULL && argc != 0)
|
||||||
usage();
|
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)
|
"proc exec tty ps", NULL) != 0)
|
||||||
err(1, "pledge");
|
err(1, "pledge");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user