summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-11-03 17:23:49 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-11-03 17:23:49 +0000
commitd5b7924a41280bedc5fec28e10f5303ea8e17c3c (patch)
tree586ca396a51a12e7282b04fbeaaa4be5d0f24eb0 /usr.sbin/pkg_install/add
parentd8e0514e95581dad464e327d02d0251151b96145 (diff)
Stupid thinko. Let pkg's MESSAGES work again.
Spotted by Ian Darwin.
Diffstat (limited to 'usr.sbin/pkg_install/add')
-rw-r--r--usr.sbin/pkg_install/add/perform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c
index d6b9e80ec41..6ba0b7e1780 100644
--- a/usr.sbin/pkg_install/add/perform.c
+++ b/usr.sbin/pkg_install/add/perform.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: perform.c,v 1.10 1999/10/09 20:35:45 beck Exp $ */
+/* $OpenBSD: perform.c,v 1.11 1999/11/03 17:23:48 espie Exp $ */
#ifndef lint
-static const char *rcsid = "$OpenBSD: perform.c,v 1.10 1999/10/09 20:35:45 beck Exp $";
+static const char *rcsid = "$OpenBSD: perform.c,v 1.11 1999/11/03 17:23:48 espie Exp $";
#endif
/*
@@ -546,7 +546,7 @@ pkg_do(char *pkg)
Pager = "/usr/bin/more";
snprintf(buf, sizeof buf, "%s/%s", LogDir, p->name);
- if (!stat(buf,&sbuf) || vsystem("%s %s", Pager, buf))
+ if (stat(buf,&sbuf) == -1 || vsystem("%s %s", Pager, buf))
warnx("cannot open `%s' as display file", buf);
}