Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Apr 1995 17:51:52 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bugs@FreeBSD.org, mpp@mpp.com
Subject:   Re: kern/subr_log.c ioctl bug
Message-ID:  <199504290751.RAA15638@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>Could someone apply the following patch to sys/kern/subr_log.c?  
>It fixes the ioctl routine to not chew up massive amounts of kernel time 
>if an invalid ioctl is done on /dev/klog.  logioctl() needs to return
>an errno instead of -1 on a failed ioctl.  Discovered while adapting
>this code for my screen print routines.

old>! 		return (-1);
>...
new>! 		return (EINVAL);

It should return ENOTTY.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504290751.RAA15638>