浏览代码

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 年之前
父节点
当前提交
3cd353a99e
共有 1 个文件被更改,包括 2 次插入2 次删除
  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
  * 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
  * This is a modified version of Hiroaki Etoh's stack smashing routines
  * implemented for glibc.
  * implemented for glibc.
@@ -108,7 +108,7 @@ void __stack_smash_handler(char func[], int damaged)
 
 
 	/* print error message to stderr and syslog */
 	/* print error message to stderr and syslog */
 	fprintf(stderr, "%s%s%s()\n", __progname, message, func);
 	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 */
 	/* Make sure the default handler is associated with the our signal handler */
 	memset(&sa, 0, sizeof(struct sigaction));
 	memset(&sa, 0, sizeof(struct sigaction));