Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

epstool patch

By: a guest on Apr 10th, 2012  |  syntax: Diff  |  size: 0.87 KB  |  hits: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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);