Module Name: src
Committed By: bouyer
Date: Fri May 20 19:22:20 UTC 2011
Modified Files:
src/usr.bin/patch [netbsd-5]: patch.c
Log Message:
Pull up following revision(s) (requested by dholland in ticket #1614):
usr.bin/patch/patch.c: revision 1.28
Exit with EXIT_FAILURE for invalid arguments. PR 43517.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.27.4.1 src/usr.bin/patch/patch.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/patch/patch.c
diff -u src/usr.bin/patch/patch.c:1.27 src/usr.bin/patch/patch.c:1.27.4.1
--- src/usr.bin/patch/patch.c:1.27 Fri Sep 19 18:33:34 2008
+++ src/usr.bin/patch/patch.c Fri May 20 19:22:20 2011
@@ -1,7 +1,7 @@
/*
* $OpenBSD: patch.c,v 1.45 2007/04/18 21:52:24 sobrado Exp $
* $DragonFly: src/usr.bin/patch/patch.c,v 1.10 2008/08/10 23:39:56 joerg Exp $
- * $NetBSD: patch.c,v 1.27 2008/09/19 18:33:34 joerg Exp $
+ * $NetBSD: patch.c,v 1.27.4.1 2011/05/20 19:22:20 bouyer Exp $
*/
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: patch.c,v 1.27 2008/09/19 18:33:34 joerg Exp $");
+__RCSID("$NetBSD: patch.c,v 1.27.4.1 2011/05/20 19:22:20 bouyer Exp $");
#include <sys/types.h>
#include <sys/stat.h>
@@ -623,7 +623,7 @@
" [-r rej-name] [-V t | nil | never] [-x number] [-z backup-ext]\n"
" [--posix] [origfile [patchfile]]\n"
" patch <patchfile\n");
- my_exit(EXIT_SUCCESS);
+ my_exit(EXIT_FAILURE);
}
/*