patch-src_exactly_main_c 445 B

123456789101112131415
  1. $OpenBSD: patch-src_exactly_main_c,v 1.1 2016/08/12 22:12:13 jca Exp $
  2. --- src/exactly/main.c.orig Wed Apr 27 19:08:28 2016
  3. +++ src/exactly/main.c Wed Apr 27 19:10:31 2016
  4. @@ -142,6 +142,10 @@ decipher_command_line(int argc, char** argv)
  5. int main(int argc, char* argv[])
  6. {
  7. + if (pledge("stdio", NULL) == -1) {
  8. + perror("pledge");
  9. + exit(2);
  10. + }
  11. char* block = NULL;
  12. unsigned long int i = 0;
  13. unsigned long int rcount = 0;