diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2023-01-24 16:46:01 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2023-02-13 06:15:08 +0000 |
commit | 7e688ed493482c5346d969e7667856d8ced8d87a (patch) | |
tree | 3fcb68f36dbbc9137b3604acf44bf483f87f219f /usr.bin/patch/patch.c | |
parent | e63dcbe7a2cb8f6b6932cef48e70f3372f4df737 (diff) |
Diffstat (limited to 'usr.bin/patch/patch.c')
-rw-r--r-- | usr.bin/patch/patch.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c index a23fc82d3d90..48d3bd37fe5b 100644 --- a/usr.bin/patch/patch.c +++ b/usr.bin/patch/patch.c @@ -463,9 +463,13 @@ main(int argc, char *argv[]) if (!check_only) say("%d out of %d hunks %s--saving rejects to %s\n", failed, hunk, skip_rest_of_patch ? "ignored" : "failed", rejname); - else + else if (filearg[0] != NULL) say("%d out of %d hunks %s while patching %s\n", failed, hunk, skip_rest_of_patch ? "ignored" : "failed", filearg[0]); + else + /* File prompt ignored, just note # hunks. */ + say("%d out of %d hunks %s\n", + failed, hunk, skip_rest_of_patch ? "ignored" : "failed"); if (!check_only && move_file(TMPREJNAME, rejname) < 0) trejkeep = true; } |