=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/chpass/chpass.c,v retrieving revision 1.45 retrieving revision 1.46 diff -u -r1.45 -r1.46 --- src/usr.bin/chpass/chpass.c 2019/04/30 18:28:45 1.45 +++ src/usr.bin/chpass/chpass.c 2019/09/14 17:47:00 1.46 @@ -1,4 +1,4 @@ -/* $OpenBSD: chpass.c,v 1.45 2019/04/30 18:28:45 mestre Exp $ */ +/* $OpenBSD: chpass.c,v 1.46 2019/09/14 17:47:00 semarie Exp $ */ /* $NetBSD: chpass.c,v 1.8 1996/05/15 21:50:43 jtc Exp $ */ /*- @@ -183,7 +183,7 @@ sigdelset(&fullset, SIGINT); sigprocmask(SIG_BLOCK, &fullset, NULL); - if (unveil(_PATH_MASTERPASSWD_LOCK, "wc") == -1) + if (unveil(_PATH_MASTERPASSWD_LOCK, "rwc") == -1) err(1, "unveil"); if (unveil(_PATH_MASTERPASSWD, "r") == -1) err(1, "unveil");