Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/patch Exit with EXIT_FAILURE for invalid arguments. ...
details: https://anonhg.NetBSD.org/src/rev/0dbd090178fc
branches: trunk
changeset: 763586:0dbd090178fc
user: dholland <dholland%NetBSD.org@localhost>
date: Sat Mar 26 21:45:48 2011 +0000
description:
Exit with EXIT_FAILURE for invalid arguments. PR 43517.
diffstat:
usr.bin/patch/patch.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r a33e19c0ae5d -r 0dbd090178fc usr.bin/patch/patch.c
--- a/usr.bin/patch/patch.c Sat Mar 26 21:42:12 2011 +0000
+++ b/usr.bin/patch/patch.c Sat Mar 26 21:45:48 2011 +0000
@@ -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.28 2011/03/26 21:45:48 dholland 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.28 2011/03/26 21:45:48 dholland 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);
}
/*
Home |
Main Index |
Thread Index |
Old Index