Subject: kern/15554: pullup of syssrc/sys/kern/kern_descrip.c typo'd an array reference
To: None <gnats-bugs@gnats.netbsd.org>
From: None <windsor@warthog.com>
List: netbsd-bugs
Date: 02/09/2002 16:34:25
>Number:         15554
>Category:       kern
>Synopsis:       pullup of syssrc/sys/kern/kern_descrip.c typo'd an array reference
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 09 14:35:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     windsor@warthog.com
>Release:        NetBSD 1.5.3_ALPHA
>Organization:
Nose-Pickers Anonymous
>Environment:
System: NetBSD dasher 1.5.3_ALPHA NetBSD 1.5.3_ALPHA (DASHER) #37: Wed Jan 23 21:37:31 CST 2002 windsor@dasher:/usr/src/sys/arch/i386/compile/DASHER i386
Architecture: i386
Machine: i386
>Description:
	When trying to build a kernel...

../../../../kern/kern_descrip.c: In function `sys_fcntl':
../../../../kern/kern_descrip.c:306: invalid type argument of `unary *'

>How-To-Repeat:
	build a kernel from 1-5-branch
>Fix:
	apply follow patch:

--- kern_descrip.c.FCS	Sat Feb  9 16:28:00 2002
+++ kern_descrip.c	Sat Feb  9 16:28:11 2002
@@ -303,7 +303,7 @@
 		}
 		error = (*fp->f_ops->fo_ioctl)
 			(fp, TIOCGPGRP, (caddr_t)&tmp, p);
-		*retval = -*tmp;
+		*retval = -tmp;
 		break;
 
 	case F_SETOWN:
>Release-Note:
>Audit-Trail:
>Unformatted: