]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/sed/sed-4.1/fchmod.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / sed / sed-4.1 / fchmod.patch
1 --- sed-4.1.orig/sed/execute.c
2 +++ sed-4.1/sed/execute.c
3 @@ -670,6 +670,8 @@
4        output_file.fp = ck_mkstemp (&input->out_file_name, tmpdir, "sed");
5        free (tmpdir);
6  
7 +      output_fd = fileno(output_file.fp);
8 +
9        fstat (fileno (input->fp), &st);
10  #ifdef HAVE_FCHMOD
11        fchmod (output_fd, st.st_mode);