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