source:
patches/sed-4.1-permissions-1.patch@
eec901a
Last change on this file since eec901a was 617118d, checked in by , 19 years ago | |
---|---|
|
|
File size: 1003 bytes |
-
sed/execute.c
Submitted By: Matthew Burgess Date: 2004-06-17 Initial Package Version: 4.1 Upstream Status: Submitted and accepted upstream Origin: Bruce Dubbs (http://www.linuxfromscratch.org/pipermail/lfs-dev/2004-June/046773.html) Description: When using the in-place function, sed 4.1 changes permissions. Specifically, when using sed on a bash script with permissions 755, the updated file has permissions 600. diff -Naur sed-4.1.orig/sed/execute.c sed-4.1/sed/execute.c
old new 668 668 669 669 input->in_file_name = name; 670 670 output_file.fp = ck_mkstemp (&input->out_file_name, tmpdir, "sed"); 671 output_fd = fileno(output_file.fp); 671 672 free (tmpdir); 672 673 673 674 fstat (fileno (input->fp), &st);
Note:
See TracBrowser
for help on using the repository browser.