diff options
author | nicm <nicm> | 2015-11-22 19:41:19 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-11-22 19:41:19 +0000 |
commit | 01a2ddf3f8d22c58bd8423be69ab0e7843d71652 (patch) | |
tree | 59a53cb29a4a464459b4ddc37933f2e4998968be /tmux.c | |
parent | 4fcc02ee9dde0f11f6a6db77b2ba6271421cea78 (diff) | |
download | rtmux-01a2ddf3f8d22c58bd8423be69ab0e7843d71652.tar.gz rtmux-01a2ddf3f8d22c58bd8423be69ab0e7843d71652.tar.bz2 rtmux-01a2ddf3f8d22c58bd8423be69ab0e7843d71652.zip |
Add getpw to pledge, makes tmux work in YP environments, discovered by
matthieu, ok deraadt
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -255,8 +255,8 @@ main(int argc, char **argv) if (shell_cmd != NULL && argc != 0) usage(); - if (pledge("stdio rpath wpath cpath flock fattr unix sendfd recvfd " - "proc exec tty ps", NULL) != 0) + if (pledge("stdio rpath wpath cpath flock fattr unix getpw sendfd " + "recvfd proc exec tty ps", NULL) != 0) err(1, "pledge"); /* |