summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2004-11-11 03:13:36 +0000
committerNed Ludd <solar@gentoo.org>2004-11-11 03:13:36 +0000
commit3cd353a99e5c12c090fab968fbf8ee145e917f7f (patch)
treefeaeedbccf91ae307390249bf41932896b83bfbd /libc/sysdeps/linux/common
parent1aea77e162fac12b7ed63a9d271e86a21ceaa741 (diff)
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.
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/ssp.c4
1 files changed, 2 insertions, 2 deletions
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));