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

 
 

bug #27380: Patched files lose some of their attributes

Submitted by:  Andreas Gruenbacher <agruen>
Submitted on:  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

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project Administrator
Fri 04 Sep 2009 11:38:54 AM UTC, comment #1:

Here is a possible fix ...

(file #18673)

Andreas Gruenbacher <agruen>
Project 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>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

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