Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/pkg_install/add avoid possible overflow of exit status
details: https://anonhg.NetBSD.org/src/rev/35c3ecdb4142
branches: trunk
changeset: 488034:35c3ecdb4142
user: sjg <sjg%NetBSD.org@localhost>
date: Fri Jun 16 23:48:23 2000 +0000
description:
avoid possible overflow of exit status
diffstat:
usr.sbin/pkg_install/add/main.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r 87f3e790a439 -r 35c3ecdb4142 usr.sbin/pkg_install/add/main.c
--- a/usr.sbin/pkg_install/add/main.c Fri Jun 16 23:47:14 2000 +0000
+++ b/usr.sbin/pkg_install/add/main.c Fri Jun 16 23:48:23 2000 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: main.c,v 1.14 2000/01/19 23:28:28 hubertf Exp $ */
+/* $NetBSD: main.c,v 1.15 2000/06/16 23:48:23 sjg Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char *rcsid = "from FreeBSD Id: main.c,v 1.16 1997/10/08 07:45:43 charnier Exp";
#else
-__RCSID("$NetBSD: main.c,v 1.14 2000/01/19 23:28:28 hubertf Exp $");
+__RCSID("$NetBSD: main.c,v 1.15 2000/06/16 23:48:23 sjg Exp $");
#endif
#endif
@@ -197,7 +197,7 @@
if ((error = pkg_perform(&pkgs)) != 0) {
if (Verbose)
warnx("%d package addition(s) failed", error);
- return error;
- } else
- return 0;
+ exit(1);
+ }
+ exit(0);
}
Home |
Main Index |
Thread Index |
Old Index