From 3cd353a99e5c12c090fab968fbf8ee145e917f7f Mon Sep 17 00:00:00 2001 From: Ned Ludd Date: Thu, 11 Nov 2004 03:13:36 +0000 Subject: misc cleanups of __stack_smash_handler() function when ssp support is enabled. syslog() support should now work both inside and outside of chroots. erandom code left in but remains #ifdef out by default. May remove erandom completely in the future for uClibc unless the LFS guys and gals want to keep it. --- libc/sysdeps/linux/common/ssp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/common/ssp.c') diff --git a/libc/sysdeps/linux/common/ssp.c b/libc/sysdeps/linux/common/ssp.c index 5ce4d831e..135399974 100644 --- a/libc/sysdeps/linux/common/ssp.c +++ b/libc/sysdeps/linux/common/ssp.c @@ -1,6 +1,6 @@ /* * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvs/uClibc/libc/sysdeps/linux/common/ssp.c,v 1.3 2004/11/11 03:12:37 solar Exp $ + * $Header: /var/cvs/uClibc/libc/sysdeps/linux/common/ssp.c,v 1.4 2004/11/11 03:13:36 solar Exp $ * * This is a modified version of Hiroaki Etoh's stack smashing routines * implemented for glibc. @@ -108,7 +108,7 @@ void __stack_smash_handler(char func[], int damaged) /* print error message to stderr and syslog */ fprintf(stderr, "%s%s%s()\n", __progname, message, func); - syslog(KERN_INFO, "%s%s%s()", __progname, message, func); + syslog(LOG_INFO, "%s%s%s()", __progname, message, func); /* Make sure the default handler is associated with the our signal handler */ memset(&sa, 0, sizeof(struct sigaction)); -- cgit v1.2.3