Project

General

Profile

Bug #2359 ยป patch.c.diff

logan1, 04/30/2012 10:13 PM

View differences:

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;
    (1-1/1)