patch-src_flyisofs_main_c 425 B

123456789101112131415
  1. $OpenBSD: patch-src_flyisofs_main_c,v 1.1 2016/08/12 22:12:13 jca Exp $
  2. --- src/flyisofs/main.c.orig Wed Apr 27 19:20:22 2016
  3. +++ src/flyisofs/main.c Wed Apr 27 19:23:33 2016
  4. @@ -879,6 +879,10 @@ write_padding(void)
  5. int main(int argc, char* argv[])
  6. {
  7. + if (pledge("stdio", NULL) == -1) {
  8. + perror("pledge");
  9. + exit(2);
  10. + }
  11. int rv = 0;
  12. unsigned long int i = 0;
  13. unsigned long int max_files_needed = 0;