Bug #2359 ยป patch.c.diff
| usr.bin/patch/patch.c | ||
|---|---|---|
|
sizeof(rejname)) >= sizeof(rejname))
|
||
|
fatal("filename %s is too long\n", outname);
|
||
|
}
|
||
|
if (skip_rest_of_patch) {
|
||
|
say("%d out of %d hunks ignored--saving rejects to %s\n",
|
||
|
failed, hunk, rejname);
|
||
|
} else {
|
||
|
say("%d out of %d hunks failed--saving rejects to %s\n",
|
||
|
failed, hunk, rejname);
|
||
|
if (check_only == false) {
|
||
|
if (skip_rest_of_patch) {
|
||
|
say("%d out of %d hunks ignored--saving rejects to %s\n",
|
||
|
failed, hunk, rejname);
|
||
|
} else {
|
||
|
say("%d out of %d hunks failed--saving rejects to %s\n",
|
||
|
failed, hunk, rejname);
|
||
|
}
|
||
|
}
|
||
|
if (!check_only && move_file(TMPREJNAME, rejname) < 0)
|
||
|
trejkeep = true;
|
||