=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/passwd.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/openssl/passwd.c 2015/10/17 07:51:10 1.6 --- src/usr.bin/openssl/passwd.c 2015/10/17 15:00:11 1.7 *************** *** 1,4 **** ! /* $OpenBSD: passwd.c,v 1.6 2015/10/17 07:51:10 semarie Exp $ */ #if defined OPENSSL_NO_MD5 #define NO_MD5CRYPT_1 --- 1,4 ---- ! /* $OpenBSD: passwd.c,v 1.7 2015/10/17 15:00:11 doug Exp $ */ #if defined OPENSSL_NO_MD5 #define NO_MD5CRYPT_1 *************** *** 146,153 **** int ret = 1; if (single_execution) { ! if (pledge("stdio rpath wpath cpath tty", NULL) == -1) perror("pledge"); } memset(&passwd_config, 0, sizeof(passwd_config)); --- 146,155 ---- int ret = 1; if (single_execution) { ! if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { perror("pledge"); + exit(1); + } } memset(&passwd_config, 0, sizeof(passwd_config));