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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since e71ed78 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 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
  • 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  
    668668     
    669669      input->in_file_name = name;
    670670      output_file.fp = ck_mkstemp (&input->out_file_name, tmpdir, "sed");
     671      output_fd = fileno(output_file.fp);
    671672      free (tmpdir);
    672673
    673674      fstat (fileno (input->fp), &st);
Note: See TracBrowser for help on using the repository browser.