Date: Sat, 27 Nov 2004 19:30:36 -0500 From: Craig Rodrigues <rodrigc@crodrigues.org> To: Vladimir Grebenschikov <vova@fbsd.ru> Cc: "current@freebsd.org" <current@freebsd.org> Subject: Re: ptrace broken on latest CURRENT ? Message-ID: <20041128003036.GA883@crodrigues.org> In-Reply-To: <1101492325.996.54.camel@localhost> References: <1101492325.996.54.camel@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 26, 2004 at 09:05:25PM +0300, Vladimir Grebenschikov wrote: > Hi > > % truss ls > truss: PIOCBIS: Inappropriate ioctl for device I'm seeing this too. This patch seems to work for me, but I don't know if it is correct or not. --- sys_generic.c.orig Sat Nov 27 19:14:39 2004 +++ sys_generic.c Sat Nov 27 19:17:09 2004 @@ -503,7 +503,7 @@ if ((size > IOCPARM_MAX) || ((com & (IOC_VOID | IOC_IN | IOC_OUT)) == 0) || ((com & IOC_VOID) && size > 0) || - ((com & (IOC_IN | IOC_OUT)) && size == 0)) { + ((com & IOC_OUT) && size == 0)) { fdrop(fp, td); return (ENOTTY); } -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041128003036.GA883>