=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/top.c,v retrieving revision 1.83 retrieving revision 1.84 diff -c -r1.83 -r1.84 *** src/usr.bin/top/top.c 2015/05/06 07:53:29 1.83 --- src/usr.bin/top/top.c 2015/10/23 03:26:24 1.84 *************** *** 1,4 **** ! /* $OpenBSD: top.c,v 1.83 2015/05/06 07:53:29 mpi Exp $ */ /* * Top users/processes display for Unix --- 1,4 ---- ! /* $OpenBSD: top.c,v 1.84 2015/10/23 03:26:24 deraadt Exp $ */ /* * Top users/processes display for Unix *************** *** 327,332 **** --- 327,335 ---- i = preset_argc; preset_argc = 0; } while (i != 0); + + if (pledge("abort stdio rpath tty ps vminfo", NULL) == -1) + err(1, "pledge"); /* set constants for username/uid display correctly */ if (!do_unames) {