=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/enc.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/openssl/enc.c 2015/09/11 14:30:23 1.7 +++ src/usr.bin/openssl/enc.c 2015/10/10 22:28:51 1.8 @@ -1,4 +1,4 @@ -/* $OpenBSD: enc.c,v 1.7 2015/09/11 14:30:23 bcook Exp $ */ +/* $OpenBSD: enc.c,v 1.8 2015/10/10 22:28:51 doug Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -337,6 +337,11 @@ #define PROG_NAME_SIZE 39 char pname[PROG_NAME_SIZE + 1]; int i; + + if (single_execution) { + if (pledge("stdio rpath wpath cpath", NULL) == -1) + perror("pledge"); + } memset(&enc_config, 0, sizeof(enc_config)); enc_config.enc = 1;