Browse Source

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.

Ned Ludd 20 years ago
parent
commit
3cd353a99e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libc/sysdeps/linux/common/ssp.c

+ 2 - 2
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));