diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-10-25 09:31:46 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2015-10-25 09:31:46 +0000 |
commit | 7930cb54c0cd6105899ba51be767697e1210aec2 (patch) | |
tree | 1de4426ea02d12a6569a25468897cf8bbc19a8ec /tmux.c | |
parent | 3e0d31c4e9a40571de2fe1d1dd66cc2cac04d5c9 (diff) | |
download | rtmux-7930cb54c0cd6105899ba51be767697e1210aec2.tar.gz rtmux-7930cb54c0cd6105899ba51be767697e1210aec2.tar.bz2 rtmux-7930cb54c0cd6105899ba51be767697e1210aec2.zip |
ifdef __OpenBSD__ around pledge().
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -259,9 +259,11 @@ main(int argc, char **argv) if (shell_cmd != NULL && argc != 0) usage(); +#ifdef __OpenBSD__ if (pledge("stdio rpath wpath cpath flock fattr unix sendfd recvfd " "proc exec tty ps", NULL) != 0) err(1, "pledge"); +#endif if (!(flags & CLIENT_UTF8)) { /* |