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 Sep 4 11:23:17 2009  
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 Apr 29 17:34:31 2010, 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 Dec 31 18:33:23 2009, 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 Dec 30 15:18:59 2009, 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 Sep 4 11:38:54 2009, comment #1:

Here is a possible fix ...

(file #18673)

Andreas Gruenbacher <agruen>
Project Administrator
Fri Sep 4 11:23:17 2009, 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):

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 Apr 29 17:34:31 2010agruenSeverity3 - Normal=>1 - Wish
    Fri Sep 4 11:38:54 2009agruenAttached File-=>Added preserve-owning-group.diff, #18673
    Fri Sep 4 11:23:55 2009agruenSummaryPatched files lose some of their file attributes=>Patched files lose some of their attributes

    Back to the top

    Powered by Savane 3.1-cleanup1