Don't try to guess if the hunk was already applied if it doesn't have
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Sun, 10 Aug 2008 23:01:51 +0000 (23:01 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Sun, 10 Aug 2008 23:01:51 +0000 (23:01 +0000)
commitc30fd56d214a2d2bae562ca87776bc26df22beb3
tree7b4ae831f4a37b2e2e075663b17d4c7c0f502b3b
parent35d5bbd393a86b44e3c916d40d4ca1330006f9d7
Don't try to guess if the hunk was already applied if it doesn't have
context. This fails at least for the special case of adding the first
line of a file with no context and when fuzz is suppressed.

Discussed with otto@openbsd.org, who didn't have a better idea.
usr.bin/patch/patch.c