Date: Sat, 10 Nov 2007 22:24:29 GMT From: Norbert Koch <nkoch@gmx.de> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/117966: fdread aborts with EPERM Message-ID: <200711102224.lAAMOTSW024143@www.freebsd.org> Resent-Message-ID: <200711102230.lAAMU13p032147@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 117966 >Category: misc >Synopsis: fdread aborts with EPERM >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 10 22:30:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Norbert Koch >Release: 6.3-PRERELEASE >Organization: >Environment: FreeBSD xp2800.koch 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #0: Sun Nov 4 19:09:23 CET 2007 root@xp2800.koch:/usr/obj/usr/src/sys/XP2800 i386 >Description: fdread returns EPERM when trying ioctl(FD_SOPTS). The fdc device driver restricts this ioctl to be only allowed when the device is opened for writing. When I modify fdread.c to not open(...,RDONLY) but RDWR, fdread works. So this may solve the problem. But I am not sure if this is the ``clean'' solution. For me it looks like the device driver should be changed. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711102224.lAAMOTSW024143>