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