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: NoneSeverity: 1 - Wish
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich 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 File(s):
   
   
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
  • -unavailable- added by myon (Posted a comment)
  • -unavailable- added by agruen (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 29 Apr 2010 05:34:31 PM UTCagruenSeverity3 - Normal=>1 - Wish
    Fri 04 Sep 2009 11:38:54 AM UTCagruenAttached File-=>Added preserve-owning-group.diff, #18673
    Fri 04 Sep 2009 11:23:55 AM UTCagruenSummaryPatched files lose some of their file attributes=>Patched files lose some of their attributes

    Back to the top


    Powered by Savane 3.1-cleanup