summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-11-22 19:41:19 +0000
committernicm <nicm@openbsd.org>2015-11-22 19:41:19 +0000
commitcb19d99cdc75f6ea54fc1e80e2f0143b748bf044 (patch)
tree02d013a2e19525bb6c15bebc51a7cef4a31198ea /usr.bin/tmux/tmux.c
parentUse yy_size_t instead of int in yy_input(). Makes things work on BE 64-bit (diff)
downloadwireguard-openbsd-cb19d99cdc75f6ea54fc1e80e2f0143b748bf044.tar.xz
wireguard-openbsd-cb19d99cdc75f6ea54fc1e80e2f0143b748bf044.zip
Add getpw to pledge, makes tmux work in YP environments, discovered by
matthieu, ok deraadt
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r--usr.bin/tmux/tmux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c
index 3d188fbed63..14c6e44dfdb 100644
--- a/usr.bin/tmux/tmux.c
+++ b/usr.bin/tmux/tmux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.c,v 1.155 2015/11/20 12:01:19 nicm Exp $ */
+/* $OpenBSD: tmux.c,v 1.156 2015/11/22 19:41:19 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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");
/*