Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102647763
D38179.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
716 B
Referenced Files
None
Subscribers
None
D38179.diff
View Options
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c
--- a/usr.bin/patch/patch.c
+++ b/usr.bin/patch/patch.c
@@ -463,9 +463,13 @@
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;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 7:38 AM (20 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14655339
Default Alt Text
D38179.diff (716 B)
Attached To
Mode
D38179: patch: omit filename if the prompt was ignored
Attached
Detach File
Event Timeline
Log In to Comment