Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Aug 2013 17:25:44 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        FreeBSD Current <freebsd-current@FreeBSD.org>
Subject:   weird patch(1) behavior
Message-ID:  <52010768.6090902@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

...
Patching file xxxx using Plan A...
Hunk #1 succeeded at 53 with fuzz 1 (offset -2 lines).
patch: **** misordered hunks! output would be garbled

But what I see is that patching actually fails.
So:

"Hunk #1 succeeded" is a lie, it did not succeed - target file was not changed
at all.
"**** misordered hunks!" is a lie, because the whole patch consisted of exactly
one hunk.

This was quite confusing.

$ patch --version
Patch version 2.1

gpatch worked as expected:
patching file xxxx
Hunk #1 FAILED at 55.
1 out of 1 hunk FAILED -- saving rejects to file xxxx.rej
-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52010768.6090902>