Commit b85da89 1 parent 2147a36 commit b85da89 Copy full SHA for b85da89
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4237,9 +4237,9 @@ static void exec_cmd(int call)
4237
4237
pipe_fno [STDIN_INDEX ] = open (pipe_file [STDIN_INDEX ], O_TEXT |O_RDONLY , S_IRUSR );
4238
4238
4239
4239
if (pipe_file_redir_count [STDOUT_INDEX ] > 1 )
4240
- pipe_fno [STDOUT_INDEX ] = open (pipe_file [STDOUT_INDEX ], O_TEXT |O_WRONLY |O_APPEND |O_CREAT , S_IWUSR ); // open for append
4240
+ pipe_fno [STDOUT_INDEX ] = open (pipe_file [STDOUT_INDEX ], O_BINARY |O_WRONLY |O_APPEND |O_CREAT , S_IWUSR ); // open for append
4241
4241
else if (pipe_file_redir_count [STDOUT_INDEX ] == 1 )
4242
- pipe_fno [STDOUT_INDEX ] = open (pipe_file [STDOUT_INDEX ], O_TEXT |O_WRONLY |O_TRUNC |O_CREAT , S_IWUSR ); // open as new file
4242
+ pipe_fno [STDOUT_INDEX ] = open (pipe_file [STDOUT_INDEX ], O_BINARY |O_WRONLY |O_TRUNC |O_CREAT , S_IWUSR ); // open as new file
4243
4243
4244
4244
/* check for error
4245
4245
if (pipe_fno[pipe_index] < 0 ||
You can’t perform that action at this time.
0 commit comments