=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/errstr.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/openssl/errstr.c 2015/08/22 16:36:05 1.4 +++ src/usr.bin/openssl/errstr.c 2015/10/10 22:28:51 1.5 @@ -1,4 +1,4 @@ -/* $OpenBSD: errstr.c,v 1.4 2015/08/22 16:36:05 jsing Exp $ */ +/* $OpenBSD: errstr.c,v 1.5 2015/10/10 22:28:51 doug Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -97,6 +97,11 @@ int argsused, i; char buf[256]; int ret = 0; + + if (single_execution) { + if (pledge("stdio rpath", NULL) == -1) + perror("pledge"); + } memset(&errstr_config, 0, sizeof(errstr_config));