summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-08-19 18:51:10 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-08-19 18:51:10 +0000
commitde4b811be36d2813412918d0347076bebcd94114 (patch)
treeef83dc883e5201cd3da69f0e4249c20a58bb0a21 /lib
parent3f4e08b91a2a18b0e4aa1ceacd8e59fa585bd369 (diff)
don't print 'unknown dbopen() error' when kvm_bsd.db doesn't exist
Diffstat (limited to 'lib')
-rw-r--r--lib/libkvm/kvm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c
index 3506f3c525a..996acd7fa22 100644
--- a/lib/libkvm/kvm.c
+++ b/lib/libkvm/kvm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm.c,v 1.14 1998/07/11 05:57:16 deraadt Exp $ */
+/* $OpenBSD: kvm.c,v 1.15 1998/08/19 18:51:09 millert Exp $ */
/* $NetBSD: kvm.c,v 1.43 1996/05/05 04:31:59 gwr Exp $ */
/*-
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
#else
-static char *rcsid = "$OpenBSD: kvm.c,v 1.14 1998/07/11 05:57:16 deraadt Exp $";
+static char *rcsid = "$OpenBSD: kvm.c,v 1.15 1998/08/19 18:51:09 millert Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -720,6 +720,9 @@ kvm_dbopen(kd)
kd->db = dbopen(_PATH_KVMDB, O_RDONLY, 0, DB_HASH, NULL);
if (kd->db == NULL) {
switch (errno) {
+ case ENOENT:
+ /* No kvm_bsd.db, fall back to /bsd silently */
+ break;
case EFTYPE:
_kvm_err(kd, kd->program,
"file %s is incorrectly formatted", _PATH_KVMDB);