From c5ed1cf8f7db6afec444b8744ed27c596e6b82d2 Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Mon, 29 Jun 1998 22:38:19 +0000 Subject: Missed one. The problem was reported by msaitoh@spa.is.uec.ac.jp --- lib/libkvm.old/kvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libkvm.old/kvm.c b/lib/libkvm.old/kvm.c index 95037b1c057..7a22d6f83a9 100644 --- a/lib/libkvm.old/kvm.c +++ b/lib/libkvm.old/kvm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm.c,v 1.5 1998/06/29 22:27:46 angelos Exp $ */ +/* $OpenBSD: kvm.c,v 1.6 1998/06/29 22:38:18 angelos Exp $ */ /* $NetBSD: kvm.c,v 1.2 1996/05/13 02:30:22 thorpej Exp $ */ @@ -496,7 +496,7 @@ kvm_read(kd, kva, buf, len) cc = _kvm_kvatop(kd, kva, &pa); if (cc == 0) - return (0); + return (-1); if (cc > len) cc = len; errno = 0; -- cgit v1.2.3