bugGNU patch - Bugs: bug #42526, patch applied patch that should be...

 
 

bug #42526: patch applied patch that should be rejected

Submitted by:  None
Submitted on:  Mon 09 Jun 2014 12:55:58 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Works For Me
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 09 Jun 2014 09:44:23 AM UTC, comment #1:

The messages I get are:

$ patch config.bfd < mips64-default-n64.diff
patching file config.bfd
Hunk #1 succeeded at 1058 with fuzz 2 (offset 5 lines).

This means that patch had to ignore context lines to make the diff apply; see the manual page. When asked not to ignore context lines, patch fails to apply the patch:

$ patch -F0 config.bfd < mips64-default-n64.diff
patching file config.bfd
Hunk #1 FAILED at 1053.
1 out of 1 hunk FAILED -- saving rejects to file config.bfd.rej

This is all as expected.

Andreas Gruenbacher <agruen>
Project Administrator
Mon 09 Jun 2014 12:55:58 AM UTC, original submission:

In the attached files,
the patch is not suit for the orig file, while it can be applied successfully.

I test it on Debian Sid (2.7), Debian Wheezy (2.6), and Mac OS X 10.9 (2.5),

all of them has the same issue.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #31523:  config.bfd added by None (50KiB - application/octet-stream)
file #31524:  mips64-default-n64.diff added by None (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by agruen (Posted a comment)
  • -unavailable- added by wzssyqa
  •  

    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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 09 Jun 2014 09:44:23 AM UTCagruenStatusNone=>Works For Me
      Open/ClosedOpen=>Closed
    Mon 09 Jun 2014 01:03:07 AM UTCwzssyqaCarbon-CopyRemoved -unavailable-=>-
    Mon 09 Jun 2014 01:02:46 AM UTCwzssyqaCarbon-Copy-=>Added wzssyqa
    Mon 09 Jun 2014 01:01:31 AM UTCwzssyqaCarbon-Copy-=>Added -unavailable-
    Mon 09 Jun 2014 12:55:58 AM UTCNoneAttached File-=>Added config.bfd, #31523
      Attached File-=>Added mips64-default-n64.diff, #31524

    Back to the top


    Powered by Savane 3.1-cleanup1