mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-18 01:20:17 +02:00
Add getpw to pledge, makes tmux work in YP environments, discovered by
matthieu, ok deraadt
This commit is contained in:
4
tmux.c
4
tmux.c
@@ -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");
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user