diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 1998-10-28 19:47:01 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 1998-10-28 19:47:01 +0000 |
commit | bbf65ab45da689b68324c72a70d080757d255ebd (patch) | |
tree | 19c46d063beeef8b618ac03d9e4f459c1c7bfb36 | |
parent | 9be1fb630283d86edbf748c04cd20341187d1e1d (diff) |
Don't return error trying to make a dump header when no
crash dump exists
-rw-r--r-- | lib/libkvm/kvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c index 1076b3f64a8..0090da6bb33 100644 --- a/lib/libkvm/kvm.c +++ b/lib/libkvm/kvm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm.c,v 1.16 1998/08/24 05:32:39 millert Exp $ */ +/* $OpenBSD: kvm.c,v 1.17 1998/10/28 19:47:00 marc 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.16 1998/08/24 05:32:39 millert Exp $"; +static char *rcsid = "$OpenBSD: kvm.c,v 1.17 1998/10/28 19:47:00 marc Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -480,7 +480,7 @@ off_t dump_off; if ((CORE_GETMAGIC(cpu_hdr) != KCORE_MAGIC) || (CORE_GETMID(cpu_hdr) != MID_MACHINE)) { _kvm_err(kd, 0, "invalid magic in cpu_hdr"); - return (-1); + return (0); } hdr_size = ALIGN(sizeof(cpu_hdr)); |