diff options
author | 2020-05-29 07:16:50 +0000 | |
---|---|---|
committer | 2020-05-29 07:16:50 +0000 | |
commit | daad37a0442075fbe7d2992a9391dab5ba18ddef (patch) | |
tree | c8c27ee6bcfbc54bc6a15f40215c88aa99bbd8c8 | |
parent | Mark the descriptor as dead when starting to destroy it. (diff) | |
download | wireguard-openbsd-daad37a0442075fbe7d2992a9391dab5ba18ddef.tar.xz wireguard-openbsd-daad37a0442075fbe7d2992a9391dab5ba18ddef.zip |
At this point getpwuid(3) was already called therefore "getpw" promise can be
dropped from pledge(2).
From Martin Vahlensieck < openbsd at academicsolutions dot ch>
OK millert@
-rw-r--r-- | usr.bin/from/from.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/from/from.c b/usr.bin/from/from.c index 9a185af1f3e..59b743e7247 100644 --- a/usr.bin/from/from.c +++ b/usr.bin/from/from.c @@ -1,4 +1,4 @@ -/* $OpenBSD: from.c,v 1.26 2018/08/08 17:52:46 deraadt Exp $ */ +/* $OpenBSD: from.c,v 1.27 2020/05/29 07:16:50 mestre Exp $ */ /* $NetBSD: from.c,v 1.6 1995/09/01 01:39:10 jtc Exp $ */ /* @@ -81,7 +81,7 @@ main(int argc, char *argv[]) if (unveil(file, "r") == -1) err(1, "unveil"); - if (pledge("stdio rpath getpw", NULL) == -1) + if (pledge("stdio rpath", NULL) == -1) err(1, "pledge"); if ((fp = fopen(file, "r")) == NULL) { |