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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f118837 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
  • 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.