Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 7ce23f99807f9a2f70929a432f12f6ae > files > 3

sysklogd-1.4.2-8mdv2009.0.src.rpm

--- /dev/null
+++ fortify.h	2008-05-30 12:18:14.874490898 +0200
@@ -0,0 +1,17 @@
+#if defined(__USE_FORTIFY_LEVEL)
+# undef syslog
+# undef vsyslog
+# undef openlog
+# undef closelog
+# undef setlogmask
+extern void priv_syslog(int, const char *, ...);
+extern void priv_vsyslog(int, const char *, va_list);
+extern void priv_openlog(const char *, int, int);
+extern void priv_closelog(void);
+extern int  priv_setlogmask(int);
+# define syslog		priv_syslog
+# define vsyslog	priv_vsyslog
+# define openlog	priv_openlog
+# define closelog	priv_closelog
+# define setlogmask	priv_setlogmask
+#endif
--- klogd.c
+++ klogd.c	2008-05-30 12:19:59.501151202 +0200
@@ -286,6 +286,8 @@ static char	*PidFile = "/etc/klogd.pid";
 #endif
 #endif
 
+#include "fortify.h"
+
 static int	kmsg,
 		change_state = 0,
 		terminate = 0,
--- syslog.c
+++ syslog.c	2008-05-30 12:20:24.799728870 +0200
@@ -72,6 +72,8 @@ static char sccsid[] = "@(#)syslog.c	5.2
 
 #define	_PATH_LOGNAME	"/dev/log"
 
+#include "fortify.h"
+
 static int	LogFile = -1;		/* fd for log */
 static int	connected;		/* have done connect */
 static int	LogStat = 0;		/* status bits, set by openlog() */