Guest User

epstool patch

a guest
Apr 10th, 2012
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff -Naur epstool-3.08/src/epstool.c epstool-3.08-fix/src/epstool.c
  2. --- epstool-3.08/src/epstool.c  2005-06-10 11:41:00.000000000 +0200
  3. +++ epstool-3.08-fix/src/epstool.c  2012-04-10 14:53:19.029536013 +0200
  4. @@ -2824,7 +2824,7 @@
  5.         code = -1;
  6.     }
  7.     if ((code==0) && stdout_name && (hChildStdoutWr == -1)) {
  8. -       handle = open(stdout_name, O_WRONLY | O_CREAT);
  9. +       handle = open(stdout_name, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
  10.         hChildStdoutWr = dup2(handle, 1);
  11.         if (handle != -1)
  12.         close(handle);
  13. @@ -2832,7 +2832,7 @@
  14.         code = -1;
  15.     }
  16.     if ((code==0) && stderr_name && (hChildStderrWr == -1)) {
  17. -       handle = open(stderr_name, O_WRONLY | O_CREAT);
  18. +       handle = open(stderr_name, O_WRONLY | O_CREAT,  S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
  19.         hChildStderrWr = dup2(handle, 2);
  20.         if (handle != -1)
  21.         close(handle);
RAW Paste Data