mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Add getpw to pledge, makes tmux work in YP environments, discovered by
matthieu, ok deraadt
This commit is contained in:
parent
4fcc02ee9d
commit
01a2ddf3f8
2 changed files with 4 additions and 4 deletions
4
server.c
4
server.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue