CVSROOT: /cvs Module name: src Changes by: mes...@cvs.openbsd.org 2021/11/11 01:42:31
Modified files: usr.bin/who : who.c Log message: There's no need to call pledge(2) so many times, or on many places, with the same promises, just call it once before the switch case while at the same time hoisting one unveil(2) so they are all grouped. The call to pledge(2) on file() can also be simplified since "stdio rpath getpw" will already be activated when we reach it. OK deraadt@