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

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 617118d was 617118d, checked in by Jim Gifford <clfs@…>, 18 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.