summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/ps/ps.c4
-rw-r--r--usr.bin/top/top.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index 396420e9d3e..2e1fc723e0c 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ps.c,v 1.66 2015/10/23 03:26:24 deraadt Exp $ */
+/* $OpenBSD: ps.c,v 1.67 2015/10/25 09:39:00 deraadt Exp $ */
/* $NetBSD: ps.c,v 1.15 1995/05/18 20:33:25 mycroft Exp $ */
/*-
@@ -278,7 +278,7 @@ main(int argc, char *argv[])
if (kd == NULL)
errx(1, "%s", errbuf);
- if (pledge("stdio rpath ps", NULL) == -1)
+ if (pledge("stdio rpath getpw ps", NULL) == -1)
err(1, "abort pledge");
if (!fmt) {
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 */