summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server.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/server.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/server.c')
-rw-r--r--usr.bin/tmux/server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index b18ce50647e..6f1fd4cf42d 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.150 2015/11/18 14:27:44 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.151 2015/11/22 19:41:19 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -175,8 +175,8 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
if (debug_level > 3)
tty_create_log();
- if (pledge("stdio rpath wpath cpath fattr unix recvfd proc exec tty "
- "ps", NULL) != 0)
+ if (pledge("stdio rpath wpath cpath fattr unix getpw recvfd proc exec "
+ "tty ps", NULL) != 0)
fatal("pledge failed");
RB_INIT(&windows);