summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-25 09:39:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-25 09:39:01 +0000
commita0d7dd9f3d293fc029c163cedb190cff0e64d999 (patch)
treebe031f1717d3bc1af2abf03efce0c5078607a2ab /usr.bin
parent8bc1d31248382ee8e26bcb876ccdf392aa5c43f7 (diff)
need "getpw" pledge; spotted by matthieu
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/top/top.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c
index a6d4fcaf3b5..b9353f18c01 100644
--- a/usr.bin/top/top.c
+++ b/usr.bin/top/top.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: top.c,v 1.84 2015/10/23 03:26:24 deraadt Exp $ */
+/* $OpenBSD: top.c,v 1.85 2015/10/25 09:39:00 deraadt Exp $ */
/*
* Top users/processes display for Unix
@@ -328,7 +328,7 @@ main(int argc, char *argv[])
preset_argc = 0;
} while (i != 0);
- if (pledge("abort stdio rpath tty ps vminfo", NULL) == -1)
+ if (pledge("stdio rpath getpw tty ps vminfo", NULL) == -1)
err(1, "pledge");
/* set constants for username/uid display correctly */