From b164c5607a4fd43a1d9ef4fbccf95dbfd0bbee55 Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 30 Jan 1997 08:16:45 +0000 Subject: [PATCH] fix IOR/IOW/IOWR; cgd@netbsd.org --- usr.bin/kdump/kdump.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index 35c429586a3..d3af78f2a24 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kdump.c,v 1.5 1996/12/10 15:42:38 deraadt Exp $ */ +/* $OpenBSD: kdump.c,v 1.6 1997/01/30 08:16:45 deraadt Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95"; #endif -static char *rcsid = "$OpenBSD: kdump.c,v 1.5 1996/12/10 15:42:38 deraadt Exp $"; +static char *rcsid = "$OpenBSD: kdump.c,v 1.6 1997/01/30 08:16:45 deraadt Exp $"; #endif /* not lint */ #include @@ -283,9 +283,9 @@ ioctldecode(cmd) { char dirbuf[4], *dir = dirbuf; - if (cmd & IOC_OUT) - *dir++ = 'W'; if (cmd & IOC_IN) + *dir++ = 'W'; + if (cmd & IOC_OUT) *dir++ = 'R'; *dir = '\0'; -- 2.20.1