Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 259305
Collapse All | Expand All

(-)epstool-3.08.orig/src/epstool.c (-2 / +2 lines)
Lines 2824-2830 Link Here
2824
		code = -1;
2824
		code = -1;
2825
	}
2825
	}
2826
	if ((code==0) && stdout_name && (hChildStdoutWr == -1)) {
2826
	if ((code==0) && stdout_name && (hChildStdoutWr == -1)) {
2827
	    handle = open(stdout_name, O_WRONLY | O_CREAT);
2827
	    handle = open(stdout_name, O_WRONLY | O_CREAT, 0644);
2828
	    hChildStdoutWr = dup2(handle, 1);
2828
	    hChildStdoutWr = dup2(handle, 1);
2829
	    if (handle != -1)
2829
	    if (handle != -1)
2830
		close(handle);
2830
		close(handle);
Lines 2832-2838 Link Here
2832
		code = -1;
2832
		code = -1;
2833
	}
2833
	}
2834
	if ((code==0) && stderr_name && (hChildStderrWr == -1)) {
2834
	if ((code==0) && stderr_name && (hChildStderrWr == -1)) {
2835
	    handle = open(stderr_name, O_WRONLY | O_CREAT);
2835
	    handle = open(stderr_name, O_WRONLY | O_CREAT, 0644);
2836
	    hChildStderrWr = dup2(handle, 2);
2836
	    hChildStderrWr = dup2(handle, 2);
2837
	    if (handle != -1)
2837
	    if (handle != -1)
2838
		close(handle);
2838
		close(handle);

Return to bug 259305