Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Aug 2003 09:27:28 +0100
From:      Bruce M Simpson <bms@spc.org>
To:        nectar@freebsd.org
Cc:        security@freebsd.org
Subject:   Re: Kernel build fails (RELENG_4_5)
Message-ID:  <20030811082728.GH31845@spc.org>
In-Reply-To: <20030811080918.GI25513@spc.org>
References:  <20030811080918.GI25513@spc.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--KDt/GgjP6HVcx58l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi Jacques, list,

On Mon, Aug 11, 2003 at 09:09:18AM +0100, Bruce M Simpson wrote:
> cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/../include -I/usr/src/sys/contrib/ipfilter  -D_KERNEL -include opt_global.h -elf  -mpreferred-stack-boundary=2  /usr/src/sys/kern/sys_process.c
> /usr/src/sys/kern/sys_process.c: In function `ptrace':
> /usr/src/sys/kern/sys_process.c:338: `data' undeclared (first use in this function)
...
> *** Error code 1

This looks like it fixes the buildkernel on RELENG_4_5 branch (attached).

BMS


--KDt/GgjP6HVcx58l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="sys_process.bms.diff"

--- sys_process.c.bms	Mon Aug 11 09:22:08 2003
+++ sys_process.c	Mon Aug 11 09:22:28 2003
@@ -335,7 +335,7 @@
 	case PT_CONTINUE:
 	case PT_DETACH:
 		/* Zero means do not send any signal */
-		if (data < 0 || data > _SIG_MAXSIG)
+		if (uap->data < 0 || uap->data > _SIG_MAXSIG)
 			return EINVAL;
 
 		PHOLD(p);

--KDt/GgjP6HVcx58l--



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