bugGNU patch - Bugs: bug #27380, Patched files lose some of their...

 
 

bug #27380: Patched files lose some of their attributes

Submitter:  Andreas Gruenbacher <agruen>
Submitted:  Fri 04 Sep 2009 11:23:17 AM UTC
   
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 29 Apr 2010 05:34:31 PM UTC, comment #4: 

Patch now checks for and refuses to patch symlinks.  It still does not preserve all file attributes, though.

Andreas Gruenbacher <agruen>
Group administrator
Thu 31 Dec 2009 06:33:23 PM UTC, comment #3: 

There's an old discussion about this problem in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=262737 .

Another bit that gets lost is symlinks. (Cf. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=243309)

Christoph Berg <myon>
Wed 30 Dec 2009 03:18:59 PM UTC, comment #2: 

The owning group is now preserved too, but attributes like selinux labels, etc. will still be lost.

Andreas Gruenbacher <agruen>
Group administrator
Fri 04 Sep 2009 11:38:54 AM UTC, comment #1: 

Here is a possible fix ...

(file #18673)

Andreas Gruenbacher <agruen>
Group administrator
Fri 04 Sep 2009 11:23:17 AM UTC, original submission:  

Files are not patched in-place; instead, new temporary files are created which then replace the original files. Patch preserves the file mode, but fails to preserve other attributes like the owning group, etc.

Andreas Gruenbacher <agruen>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #18673:  preserve-owning-group.diff added by agruen (789B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by myon (Posted a comment)
  • -email is unavailable- added by agruen (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-04-29 agruen Severity3 - Normal 1 - Wish
    2009-09-04 agruen Attached File- Added preserve-owning-group.diff, #18673
    2009-09-04 agruen SummaryPatched files lose some of their file attributes Patched files lose some of their attributes

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code