mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 06:42:56 -04:00
if `first_guess' is zero then main() assumes that locate_hunk has failed and aborts the patch operation. Instead, make sure to return 1 (the line number) so that the patch operation can continue. Issue originally found by Neels Hofmeyr in the regress suite of the diff implementation for got, where the tests assume that applying a diff with `patch' and then again with `patch -R' yields back the original file. Obtained from: OpenBSD (CVS patch.c,v 1.71) |
||
|---|---|---|
| .. | ||
| tests | ||
| backupfile.c | ||
| backupfile.h | ||
| common.h | ||
| inp.c | ||
| inp.h | ||
| Makefile | ||
| Makefile.depend | ||
| mkpath.c | ||
| patch.1 | ||
| patch.c | ||
| pathnames.h | ||
| pch.c | ||
| pch.h | ||
| util.c | ||
| util.h | ||