CVSROOT: /cvs Module name: src Changes by: dera...@cvs.openbsd.org 2015/10/13 09:43:19
Modified files: usr.sbin/kvm_mkdb: kvm_mkdb.c Log message: oops, a chown appears late on the code. to satisfy this pledge "stdio rpath wpath cpath getpw fattr proc" early on; "proc fattr" allows doing work with other uids on the file. after opening the db, do the chown (replace with fchown since we know fd) and then pledge "stdio rpath"; "rpath" due to tmpfile rename() at the end. mistake spotted by mpi