From: deraadt Date: Thu, 30 Jan 1997 08:16:45 +0000 (+0000) Subject: fix IOR/IOW/IOWR; cgd@netbsd.org X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b164c5607a4fd43a1d9ef4fbccf95dbfd0bbee55;p=openbsd fix IOR/IOW/IOWR; cgd@netbsd.org --- 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';