Kernel build fails (RELENG_4_5)

Bruce M Simpson bms at spc.org
Mon Aug 11 01:30:14 PDT 2003


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

-------------- next part --------------
--- 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);


More information about the freebsd-security mailing list