diff options
author | 2015-11-11 15:37:34 +0000 | |
---|---|---|
committer | 2015-11-11 15:37:34 +0000 | |
commit | 75226714fd37d79b033e68a41eaa56a6055d8156 (patch) | |
tree | bc2a2ed63073d3b55a3e973d26fee5338eeef3d0 | |
parent | Use fstatat(), openat() and unlinkat() when operating on files in (diff) | |
download | wireguard-openbsd-75226714fd37d79b033e68a41eaa56a6055d8156.tar.xz wireguard-openbsd-75226714fd37d79b033e68a41eaa56a6055d8156.zip |
needs pledge "getpw" also
-rw-r--r-- | usr.bin/mg/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c index 7f5e235fe8a..a892906b0a5 100644 --- a/usr.bin/mg/main.c +++ b/usr.bin/mg/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.78 2015/11/11 15:10:20 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.79 2015/11/11 15:37:34 deraadt Exp $ */ /* This file is in the public domain. */ @@ -56,7 +56,7 @@ main(int argc, char **argv) int nobackups = 0; struct buffer *bp = NULL; - if (pledge("stdio rpath wpath cpath fattr proc exec tty", NULL) == -1) + if (pledge("stdio rpath wpath cpath fattr getpw proc exec tty", NULL) == -1) err(1, "pledge"); while ((o = getopt(argc, argv, "nf:")) != -1) |