aboutsummaryrefslogtreecommitdiffstats
path: root/sed/sed-4.1/fchmod.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sed/sed-4.1/fchmod.patch')
-rw-r--r--sed/sed-4.1/fchmod.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/sed/sed-4.1/fchmod.patch b/sed/sed-4.1/fchmod.patch
index e69de29bb2..b5568b509b 100644
--- a/sed/sed-4.1/fchmod.patch
+++ b/sed/sed-4.1/fchmod.patch
@@ -0,0 +1,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);