6

I am trying to apply a patch on Linux using patch -p1 < name_of_a_patch.patch

I get this line saying

patching file my_application.c
Hunk #1 succeeded at 96 (offset -27 lines)

And I see a file my_application.c.org

What does this mean?

terdon
  • 52,568
  • 14
  • 124
  • 170
n179911
  • 3,613
  • 14
  • 39
  • 38

1 Answers1

13

If the file to be patched has changed slightly since the patch was created, but the specific section remained the same, patch can detect that and apply the patch appropriately.

The message you see means the file was successfully patched, but the first section that was patched was 27 lines earlier than was originally specified.

user55325
  • 5,003
  • 18
  • 23