source: patches/sed-4.1-permissions-1.patch@ 99e4712

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 99e4712 was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100644
File size: 1003 bytes
RevLine 
[617118d]1Submitted By: Matthew Burgess
2Date: 2004-06-17
3Initial Package Version: 4.1
4Upstream Status: Submitted and accepted upstream
5Origin: Bruce Dubbs
6 (http://www.linuxfromscratch.org/pipermail/lfs-dev/2004-June/046773.html)
7Description: When using the in-place function, sed 4.1 changes
8 permissions. Specifically, when using sed on a bash
9 script with permissions 755, the updated file has
10 permissions 600.
11
12diff -Naur sed-4.1.orig/sed/execute.c sed-4.1/sed/execute.c
13--- sed-4.1.orig/sed/execute.c 2004-03-13 09:30:39.000000000 +0000
14+++ sed-4.1/sed/execute.c 2004-06-17 20:05:20.000000000 +0000
15@@ -668,6 +668,7 @@
16
17 input->in_file_name = name;
18 output_file.fp = ck_mkstemp (&input->out_file_name, tmpdir, "sed");
19+ output_fd = fileno(output_file.fp);
20 free (tmpdir);
21
22 fstat (fileno (input->fp), &st);
Note: See TracBrowser for help on using the repository browser.