diff options
author | 2015-10-10 22:06:41 +0000 | |
---|---|---|
committer | 2015-10-10 22:06:41 +0000 | |
commit | ec78cf010bbf875c5eba3e84c381ae6f88baa587 (patch) | |
tree | e28f5ce9c4bfe3661ae23b82ff986a6bd5511d88 | |
parent | Fix YP user and group support in getent(1). (diff) | |
download | wireguard-openbsd-ec78cf010bbf875c5eba3e84c381ae6f88baa587.tar.xz wireguard-openbsd-ec78cf010bbf875c5eba3e84c381ae6f88baa587.zip |
another pledge argument reorder for sake of re-audit
-rw-r--r-- | usr.bin/who/who.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c index b409e541a99..da750dc0ef5 100644 --- a/usr.bin/who/who.c +++ b/usr.bin/who/who.c @@ -1,4 +1,4 @@ -/* $OpenBSD: who.c,v 1.23 2015/10/09 01:37:09 deraadt Exp $ */ +/* $OpenBSD: who.c,v 1.24 2015/10/10 22:06:41 deraadt Exp $ */ /* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */ /* @@ -74,7 +74,7 @@ main(int argc, char *argv[]) setlocale(LC_ALL, ""); - if (pledge("stdio getpw rpath tty", NULL) == -1) + if (pledge("stdio rpath getpw tty", NULL) == -1) err(1, "pledge"); mytty = ttyname(0); @@ -290,7 +290,7 @@ file(char *name) /* NOTREACHED */ } if (show_term || show_idle) { - if (pledge("stdio getpw rpath", NULL) == -1) + if (pledge("stdio rpath getpw", NULL) == -1) err(1, "pledge"); } else { if (pledge("stdio getpw", NULL) == -1) |