summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordm <dm@cvs.openbsd.org>1997-06-02 17:06:54 +0000
committerdm <dm@cvs.openbsd.org>1997-06-02 17:06:54 +0000
commit1e55774cd14f14a5302ab1855d0bbc4281d6a71d (patch)
treeda6c5a1a7ecb16ddc12bcdeb1400b424ddd68bc0 /lib
parent04eff0e424ffbc371025b9e8920e790a7ac81b9a (diff)
Man page claims O_WRONLY is allowed. Why not?
Diffstat (limited to 'lib')
-rw-r--r--lib/libkvm/kvm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c
index cbe0d571d53..034e540e77e 100644
--- a/lib/libkvm/kvm.c
+++ b/lib/libkvm/kvm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm.c,v 1.6 1997/02/26 16:46:28 niklas Exp $ */
+/* $OpenBSD: kvm.c,v 1.7 1997/06/02 17:06:53 dm 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.6 1997/02/26 16:46:28 niklas Exp $";
+static char *rcsid = "$OpenBSD: kvm.c,v 1.7 1997/06/02 17:06:53 dm Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -246,7 +246,7 @@ _kvm_open(kd, uf, mf, sf, flag, errout)
_kvm_err(kd, kd->program, "exec file name too long");
goto failed;
}
- if (flag & ~O_RDWR) {
+ if (flag & ~O_ACCMODE) {
_kvm_err(kd, kd->program, "bad flags arg");
goto failed;
}