summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/lib/exec.c
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1997-10-16 00:31:32 +0000
committerhubertf <hubertf@NetBSD.org>1997-10-16 00:31:32 +0000
commitd0245e3952ee6e22ffeffe67e2c7dbf2ae7d93ed (patch)
tree287265b6040901fa5e180bad2048c0160cca569c /usr.sbin/pkg_install/lib/exec.c
parentbc6479768b704b0477d2f52afcd91dc620e0a6a7 (diff)
First cut on importing pkg_install as of FreeBSD 971013:
- warn()/err() instead of whinge()/barf() - Update RCS Id strings - Update manpages (mostly)
Diffstat (limited to 'usr.sbin/pkg_install/lib/exec.c')
-rw-r--r--usr.sbin/pkg_install/lib/exec.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.sbin/pkg_install/lib/exec.c b/usr.sbin/pkg_install/lib/exec.c
index a0c17da16ba..40974c59b20 100644
--- a/usr.sbin/pkg_install/lib/exec.c
+++ b/usr.sbin/pkg_install/lib/exec.c
@@ -1,10 +1,10 @@
-/* $NetBSD: exec.c,v 1.2 1997/06/05 12:59:44 agc Exp $ */
+/* $NetBSD: exec.c,v 1.3 1997/10/16 00:32:17 hubertf Exp $ */
#ifndef lint
#if 0
-static const char *rcsid = "from FreeBSD Id: exec.c,v 1.5 1997/02/22 16:09:46 peter Exp";
+static const char *rcsid = "from FreeBSD Id: exec.c,v 1.6 1997/10/08 07:47:50 charnier Exp";
#else
-static const char *rcsid = "$NetBSD: exec.c,v 1.2 1997/06/05 12:59:44 agc Exp $";
+static const char *rcsid = "$NetBSD: exec.c,v 1.3 1997/10/16 00:32:17 hubertf Exp $";
#endif
#endif
@@ -28,6 +28,7 @@ static const char *rcsid = "$NetBSD: exec.c,v 1.2 1997/06/05 12:59:44 agc Exp $"
*
*/
+#include <err.h>
#include "lib.h"
/*
@@ -46,13 +47,13 @@ vsystem(const char *fmt, ...)
maxargs -= 32; /* some slop for the sh -c */
cmd = malloc(maxargs);
if (!cmd) {
- whinge("vsystem can't alloc arg space");
+ warnx("vsystem can't alloc arg space");
return 1;
}
va_start(args, fmt);
if (vsnprintf(cmd, maxargs, fmt, args) > maxargs) {
- whinge("vsystem args are too long");
+ warnx("vsystem args are too long");
return 1;
}
#ifdef DEBUG