=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/encrypt/encrypt.c,v retrieving revision 1.50 retrieving revision 1.51 diff -c -r1.50 -r1.51 *** src/usr.bin/encrypt/encrypt.c 2019/09/14 17:47:00 1.50 --- src/usr.bin/encrypt/encrypt.c 2021/07/12 15:09:19 1.51 *************** *** 1,4 **** ! /* $OpenBSD: encrypt.c,v 1.50 2019/09/14 17:47:00 semarie Exp $ */ /* * Copyright (c) 1996, Jason Downs. All rights reserved. --- 1,4 ---- ! /* $OpenBSD: encrypt.c,v 1.51 2021/07/12 15:09:19 beck Exp $ */ /* * Copyright (c) 1996, Jason Downs. All rights reserved. *************** *** 95,103 **** char *extra = NULL; /* Store login class or number of rounds */ const char *errstr; ! if (unveil(_PATH_LOGIN_CONF, "r") == -1 || ! unveil(_PATH_LOGIN_CONF ".db", "r") == -1) ! err(1, "unveil"); if (pledge("stdio rpath tty", NULL) == -1) err(1, "pledge"); --- 95,104 ---- char *extra = NULL; /* Store login class or number of rounds */ const char *errstr; ! if (unveil(_PATH_LOGIN_CONF, "r") == -1) ! err(1, "unveil %s", _PATH_LOGIN_CONF); ! if (unveil(_PATH_LOGIN_CONF ".db", "r") == -1) ! err(1, "unveil %s.db", _PATH_LOGIN_CONF); if (pledge("stdio rpath tty", NULL) == -1) err(1, "pledge");