Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -Naur epstool-3.08/src/epstool.c epstool-3.08-fix/src/epstool.c
- --- epstool-3.08/src/epstool.c 2005-06-10 11:41:00.000000000 +0200
- +++ epstool-3.08-fix/src/epstool.c 2012-04-10 14:53:19.029536013 +0200
- @@ -2824,7 +2824,7 @@
- code = -1;
- }
- if ((code==0) && stdout_name && (hChildStdoutWr == -1)) {
- - handle = open(stdout_name, O_WRONLY | O_CREAT);
- + handle = open(stdout_name, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
- hChildStdoutWr = dup2(handle, 1);
- if (handle != -1)
- close(handle);
- @@ -2832,7 +2832,7 @@
- code = -1;
- }
- if ((code==0) && stderr_name && (hChildStderrWr == -1)) {
- - handle = open(stderr_name, O_WRONLY | O_CREAT);
- + handle = open(stderr_name, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
- hChildStderrWr = dup2(handle, 2);
- if (handle != -1)
- close(handle);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement