This commit is contained in:
committed by
Git OBS Bridge
parent
6ed077a11a
commit
1cf353ba33
42
sysklogd-1.4.1-nofortify.patch
Normal file
42
sysklogd-1.4.1-nofortify.patch
Normal file
@@ -0,0 +1,42 @@
|
||||
--- fortify.h
|
||||
+++ 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() */
|
Reference in New Issue
Block a user