From f718bedc4f28c4407e9b873a356c4d2cffbdfe36 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Wed, 31 Dec 2014 16:30:33 +0000 Subject: [PATCH] Fixes to exit status. Exit with EXIT_FAILURE for invalid arguments. Fixes NetBSD-PR 43517. Print version string to stdout instead of stderr; it is user-requested and not an error. Obtained from: NetBSD MFC after: 5 days --- usr.bin/patch/patch.c | 2 +- usr.bin/patch/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c index 987bddc6004..22f302741ae 100644 --- a/usr.bin/patch/patch.c +++ b/usr.bin/patch/patch.c @@ -634,7 +634,7 @@ usage(void) " [-r rej-name] [-V t | nil | never] [-x number] [-z backup-ext]\n" " [--posix] [origfile [patchfile]]\n" " patch