source: scripts/patches/sed-4.1-permissions-1.patch @ c7ec163

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since c7ec163 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 18 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • 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.