From owner-cvs-all@FreeBSD.ORG Wed Oct 26 22:28:38 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4C3816A41F; Wed, 26 Oct 2005 22:28:38 +0000 (GMT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62B1B43D46; Wed, 26 Oct 2005 22:28:38 +0000 (GMT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9QMScvf010448; Wed, 26 Oct 2005 22:28:38 GMT (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9QMSctp010447; Wed, 26 Oct 2005 22:28:38 GMT (envelope-from peter) Message-Id: <200510262228.j9QMSctp010447@repoman.freebsd.org> From: Peter Wemm Date: Wed, 26 Oct 2005 22:28:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.sbin/fdread fdread.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2005 22:28:38 -0000 peter 2005-10-26 22:28:38 UTC FreeBSD src repository Modified files: usr.sbin/fdread fdread.c Log: fdread cannot work without opening the /dev/fd node in O_RDWR mode now, because it sets the floppy controller parameters, which requires O_RDWR. Specifically, the FD_SOPTS ioctl requires this, and the code errors out and aborts if it can't do it. Among other things, it is changing the FDOPT_NOERRLOG flag. Broken in 6.0 as well. Revision Changes Path 1.7 +1 -1 src/usr.sbin/fdread/fdread.c