blob: b5568b509be653b00fd3d97b2eb117dc6f481d65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- sed-4.1.orig/sed/execute.c
+++ sed-4.1/sed/execute.c
@@ -670,6 +670,8 @@
output_file.fp = ck_mkstemp (&input->out_file_name, tmpdir, "sed");
free (tmpdir);
+ output_fd = fileno(output_file.fp);
+
fstat (fileno (input->fp), &st);
#ifdef HAVE_FCHMOD
fchmod (output_fd, st.st_mode);
|