checked in
OBS-URL: https://build.opensuse.org/package/show/Base:System/syslogd?expand=0&rev=11
This commit is contained in:
parent
53bbc01f78
commit
8921250342
@ -2,10 +2,8 @@
|
|||||||
! Be able to write errors on creating of pid file on
|
! Be able to write errors on creating of pid file on
|
||||||
! the current terminal (bug #394787)
|
! the current terminal (bug #394787)
|
||||||
!
|
!
|
||||||
Index: klogd.c
|
--- klogd.c
|
||||||
===================================================================
|
+++ klogd.c 2008-05-28 12:01:46.000000000 +0200
|
||||||
--- klogd.c.orig 2009-11-24 18:12:56.247123000 +0100
|
|
||||||
+++ klogd.c 2009-11-24 18:12:56.685124000 +0100
|
|
||||||
@@ -1098,6 +1098,10 @@ int main(argc, argv)
|
@@ -1098,6 +1098,10 @@ int main(argc, argv)
|
||||||
auto int fl;
|
auto int fl;
|
||||||
int num_fds = getdtablesize();
|
int num_fds = getdtablesize();
|
||||||
@ -48,10 +46,8 @@ Index: klogd.c
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Index: pidfile.c
|
--- pidfile.c
|
||||||
===================================================================
|
+++ pidfile.c 2008-05-29 23:43:35.280028303 +0200
|
||||||
--- pidfile.c.orig 1998-02-10 23:37:12.000000000 +0100
|
|
||||||
+++ pidfile.c 2009-11-24 18:12:56.689116000 +0100
|
|
||||||
@@ -23,6 +23,7 @@
|
@@ -23,6 +23,7 @@
|
||||||
* Sat Aug 19 13:24:33 MET DST 1995: Martin Schulze
|
* Sat Aug 19 13:24:33 MET DST 1995: Martin Schulze
|
||||||
* First version (v0.2) released
|
* First version (v0.2) released
|
||||||
@ -132,10 +128,8 @@ Index: pidfile.c
|
|||||||
close(fd);
|
close(fd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Index: syslogd.c
|
--- syslogd.c
|
||||||
===================================================================
|
+++ syslogd.c 2008-05-28 12:12:25.000000000 +0200
|
||||||
--- syslogd.c.orig 2009-11-24 18:12:56.480126000 +0100
|
|
||||||
+++ syslogd.c 2009-11-24 18:12:56.694123000 +0100
|
|
||||||
@@ -22,7 +22,7 @@ char copyright2[] =
|
@@ -22,7 +22,7 @@ char copyright2[] =
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
Index: syslog.c
|
--- syslog.c
|
||||||
===================================================================
|
+++ syslog.c Wed May 23 18:48:13 2001
|
||||||
--- syslog.c.orig 2001-03-11 20:35:51.000000000 +0100
|
@@ -211,8 +211,9 @@
|
||||||
+++ syslog.c 2009-11-24 18:12:52.145473000 +0100
|
|
||||||
@@ -211,8 +211,9 @@ openlog(ident, logstat, logfac)
|
|
||||||
strncpy(SyslogAddr.sa_data, _PATH_LOGNAME,
|
strncpy(SyslogAddr.sa_data, _PATH_LOGNAME,
|
||||||
sizeof(SyslogAddr.sa_data));
|
sizeof(SyslogAddr.sa_data));
|
||||||
if (LogStat & LOG_NDELAY) {
|
if (LogStat & LOG_NDELAY) {
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
Index: Makefile
|
--- sysklogd-1.4.1/Makefile.resolve 2003-06-02 14:30:18.000000000 +0200
|
||||||
===================================================================
|
+++ sysklogd-1.4.1/Makefile 2003-06-02 14:30:18.000000000 +0200
|
||||||
--- Makefile.orig 2009-11-24 18:12:53.675378000 +0100
|
@@ -62,8 +62,8 @@
|
||||||
+++ Makefile 2009-11-24 18:12:53.916293000 +0100
|
|
||||||
@@ -59,8 +59,8 @@ test: syslog_tst ksym oops_test tsyslogd
|
|
||||||
|
|
||||||
install: install_man install_exec
|
install: install_man install_exec
|
||||||
|
|
||||||
@ -13,10 +11,8 @@ Index: Makefile
|
|||||||
|
|
||||||
klogd: klogd.o syslog.o pidfile.o ksym.o ksym_mod.o
|
klogd: klogd.o syslog.o pidfile.o ksym.o ksym_mod.o
|
||||||
${CC} ${LDFLAGS} -o klogd klogd.o syslog.o pidfile.o ksym.o \
|
${CC} ${LDFLAGS} -o klogd klogd.o syslog.o pidfile.o ksym.o \
|
||||||
Index: resolve.c
|
--- sysklogd-1.4.1/resolve.c.resolve 2003-06-02 14:30:18.000000000 +0200
|
||||||
===================================================================
|
+++ sysklogd-1.4.1/resolve.c 2003-06-02 14:30:33.000000000 +0200
|
||||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
||||||
+++ resolve.c 2009-11-24 18:12:53.920294000 +0100
|
|
||||||
@@ -0,0 +1,249 @@
|
@@ -0,0 +1,249 @@
|
||||||
+/*
|
+/*
|
||||||
+ * Resolve a hostname
|
+ * Resolve a hostname
|
||||||
@ -267,11 +263,9 @@ Index: resolve.c
|
|||||||
+ write(fd, &ss, sizeof(ss));
|
+ write(fd, &ss, sizeof(ss));
|
||||||
+ exit(0);
|
+ exit(0);
|
||||||
+}
|
+}
|
||||||
Index: syslogd.c
|
--- sysklogd-1.4.1/syslogd.c.resolve 2003-06-02 14:30:18.000000000 +0200
|
||||||
===================================================================
|
+++ sysklogd-1.4.1/syslogd.c 2003-06-02 14:30:26.000000000 +0200
|
||||||
--- syslogd.c.orig 2009-11-24 18:12:53.679395000 +0100
|
@@ -633,14 +633,7 @@
|
||||||
+++ syslogd.c 2009-11-24 18:12:53.926309000 +0100
|
|
||||||
@@ -628,14 +628,7 @@ struct filed {
|
|
||||||
struct {
|
struct {
|
||||||
char f_hname[MAXHOSTNAMELEN+1];
|
char f_hname[MAXHOSTNAMELEN+1];
|
||||||
#ifdef INET6
|
#ifdef INET6
|
||||||
@ -287,7 +281,7 @@ Index: syslogd.c
|
|||||||
#else
|
#else
|
||||||
struct sockaddr_in f_addr;
|
struct sockaddr_in f_addr;
|
||||||
#endif
|
#endif
|
||||||
@@ -790,7 +783,7 @@ int decode(char *name, struct code *code
|
@@ -795,7 +788,7 @@
|
||||||
#if defined(__GLIBC__)
|
#if defined(__GLIBC__)
|
||||||
#define dprintf mydprintf
|
#define dprintf mydprintf
|
||||||
#endif /* __GLIBC__ */
|
#endif /* __GLIBC__ */
|
||||||
@ -296,7 +290,7 @@ Index: syslogd.c
|
|||||||
static void allocate_log(void);
|
static void allocate_log(void);
|
||||||
void sighup_handler();
|
void sighup_handler();
|
||||||
|
|
||||||
@@ -799,10 +792,8 @@ static int create_unix_socket(const char
|
@@ -804,10 +797,8 @@
|
||||||
#endif
|
#endif
|
||||||
#ifdef SYSLOG_INET
|
#ifdef SYSLOG_INET
|
||||||
static int create_inet_socket();
|
static int create_inet_socket();
|
||||||
@ -309,7 +303,7 @@ Index: syslogd.c
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(argc, argv)
|
int main(argc, argv)
|
||||||
@@ -1337,63 +1328,6 @@ static int create_inet_socket()
|
@@ -1342,63 +1333,6 @@
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -373,7 +367,7 @@ Index: syslogd.c
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
char **
|
char **
|
||||||
@@ -1814,7 +1748,7 @@ void fprintlog(f, from, flags, msg)
|
@@ -1821,7 +1755,7 @@
|
||||||
char line[MAXLINE + 1];
|
char line[MAXLINE + 1];
|
||||||
time_t fwd_suspend;
|
time_t fwd_suspend;
|
||||||
#ifdef INET6
|
#ifdef INET6
|
||||||
@ -382,7 +376,7 @@ Index: syslogd.c
|
|||||||
#else
|
#else
|
||||||
struct hostent *hp;
|
struct hostent *hp;
|
||||||
#endif
|
#endif
|
||||||
@@ -1883,38 +1817,21 @@ void fprintlog(f, from, flags, msg)
|
@@ -1890,38 +1824,21 @@
|
||||||
*/
|
*/
|
||||||
case F_FORW_UNKN:
|
case F_FORW_UNKN:
|
||||||
dprintf(" %s\n", f->f_un.f_forw.f_hname);
|
dprintf(" %s\n", f->f_un.f_forw.f_hname);
|
||||||
@ -435,7 +429,7 @@ Index: syslogd.c
|
|||||||
|
|
||||||
case F_FORW:
|
case F_FORW:
|
||||||
/*
|
/*
|
||||||
@@ -2544,6 +2461,7 @@ void init()
|
@@ -2553,6 +2470,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SYSLOG_INET
|
#ifdef SYSLOG_INET
|
||||||
@ -443,7 +437,7 @@ Index: syslogd.c
|
|||||||
if (Forwarding || AcceptRemote) {
|
if (Forwarding || AcceptRemote) {
|
||||||
if (finet < 0) {
|
if (finet < 0) {
|
||||||
finet = create_inet_socket();
|
finet = create_inet_socket();
|
||||||
@@ -2560,10 +2478,6 @@ void init()
|
@@ -2569,10 +2487,6 @@
|
||||||
InetInuse = 0;
|
InetInuse = 0;
|
||||||
}
|
}
|
||||||
inetm = finet;
|
inetm = finet;
|
||||||
@ -454,7 +448,7 @@ Index: syslogd.c
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
Initialized = 1;
|
Initialized = 1;
|
||||||
@@ -2923,7 +2837,7 @@ int decode(name, codetab)
|
@@ -2932,7 +2846,7 @@
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
Index: klogd.c
|
diff -ru sysklogd-1.4.1.orig/klogd.c sysklogd-1.4.1/klogd.c
|
||||||
===================================================================
|
--- sysklogd-1.4.1.orig/klogd.c 2001-03-11 20:40:10.000000000 +0100
|
||||||
--- klogd.c.orig 2009-11-24 18:12:55.564210000 +0100
|
+++ sysklogd-1.4.1/klogd.c 2007-06-18 13:22:06.978362000 +0200
|
||||||
+++ klogd.c 2009-11-24 18:12:56.247123000 +0100
|
@@ -414,9 +414,11 @@
|
||||||
@@ -416,9 +416,11 @@ static void Terminate()
|
|
||||||
{
|
{
|
||||||
CloseLogSrc();
|
CloseLogSrc();
|
||||||
Syslog(LOG_INFO, "Kernel log daemon terminating.");
|
Syslog(LOG_INFO, "Kernel log daemon terminating.");
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
Index: ksym.c
|
--- ksym.c
|
||||||
===================================================================
|
+++ ksym.c Wed May 23 18:54:18 2001
|
||||||
--- ksym.c.orig 2009-11-24 18:12:52.424467000 +0100
|
@@ -344,6 +344,7 @@
|
||||||
+++ ksym.c 2009-11-24 18:12:52.901406000 +0100
|
|
||||||
@@ -345,6 +345,7 @@ static char * FindSymbolFile()
|
|
||||||
if ( (sym_file = fopen(symfile, "r")) != (FILE *) 0 ) {
|
if ( (sym_file = fopen(symfile, "r")) != (FILE *) 0 ) {
|
||||||
if (CheckMapVersion(symfile) == 1)
|
if (CheckMapVersion(symfile) == 1)
|
||||||
file = symfile;
|
file = symfile;
|
||||||
@ -10,7 +8,7 @@ Index: ksym.c
|
|||||||
}
|
}
|
||||||
if (sym_file == (FILE *) 0 || file == (char *) 0) {
|
if (sym_file == (FILE *) 0 || file == (char *) 0) {
|
||||||
sprintf (symfile, "%s", *mf);
|
sprintf (symfile, "%s", *mf);
|
||||||
@@ -353,6 +354,7 @@ static char * FindSymbolFile()
|
@@ -352,6 +353,7 @@
|
||||||
if ( (sym_file = fopen(symfile, "r")) != (FILE *) 0 ) {
|
if ( (sym_file = fopen(symfile, "r")) != (FILE *) 0 ) {
|
||||||
if (CheckMapVersion(symfile) == 1)
|
if (CheckMapVersion(symfile) == 1)
|
||||||
file = symfile;
|
file = symfile;
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
Index: sysklogd.8
|
--- sysklogd.8
|
||||||
===================================================================
|
+++ sysklogd.8 Wed May 23 18:59:26 2001
|
||||||
--- sysklogd.8.orig 2001-03-11 20:35:51.000000000 +0100
|
@@ -29,6 +29,7 @@
|
||||||
+++ sysklogd.8 2009-11-24 18:12:52.655464000 +0100
|
|
||||||
@@ -29,6 +29,7 @@ sysklogd \- Linux system logging utiliti
|
|
||||||
.RB [ " \-s "
|
.RB [ " \-s "
|
||||||
.I domainlist
|
.I domainlist
|
||||||
]
|
]
|
||||||
@ -10,23 +8,21 @@ Index: sysklogd.8
|
|||||||
.RB [ " \-v " ]
|
.RB [ " \-v " ]
|
||||||
.LP
|
.LP
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
@@ -150,6 +151,11 @@ is specified and the host logging resolv
|
@@ -149,6 +150,11 @@
|
||||||
|
is specified and the host logging resolves to satu.infodrom.north.de
|
||||||
no domain would be cut, you will have to specify two domains like:
|
no domain would be cut, you will have to specify two domains like:
|
||||||
.BR "\-s north.de:infodrom.north.de" .
|
.BR "\-s north.de:infodrom.north.de" .
|
||||||
.TP
|
+.TP
|
||||||
+.B "\-t"
|
+.B "\-t"
|
||||||
+Tag forwarded messages with the sending hosts name as seen by the forwarder.
|
+Tag forwarded messages with the sending hosts name as seen by the forwarder.
|
||||||
+Useful for relaying syslog from DMZs through the firwall to an internal
|
+Useful for relaying syslog from DMZs through the firwall to an internal
|
||||||
+loghost.
|
+loghost.
|
||||||
+.TP
|
.TP
|
||||||
.B "\-v"
|
.B "\-v"
|
||||||
Print version and exit.
|
Print version and exit.
|
||||||
.LP
|
--- syslogd.c
|
||||||
Index: syslogd.c
|
+++ syslogd.c Wed May 23 19:01:21 2001
|
||||||
===================================================================
|
@@ -417,6 +417,13 @@
|
||||||
--- syslogd.c.orig 2001-03-11 20:40:10.000000000 +0100
|
|
||||||
+++ syslogd.c 2009-11-24 18:12:52.661468000 +0100
|
|
||||||
@@ -417,6 +417,13 @@ static char sccsid[] = "@(#)syslogd.c 5.
|
|
||||||
* file is defined in the used libc and should not be hardcoded
|
* file is defined in the used libc and should not be hardcoded
|
||||||
* into the syslogd binary referring the system it was compiled on.
|
* into the syslogd binary referring the system it was compiled on.
|
||||||
*
|
*
|
||||||
@ -40,7 +36,7 @@ Index: syslogd.c
|
|||||||
* Sun Sep 17 20:45:33 CEST 2000: Martin Schulze <joey@infodrom.ffis.de>
|
* Sun Sep 17 20:45:33 CEST 2000: Martin Schulze <joey@infodrom.ffis.de>
|
||||||
* Fixed some bugs in printline() code that did not escape
|
* Fixed some bugs in printline() code that did not escape
|
||||||
* control characters '\177' through '\237' and contained a
|
* control characters '\177' through '\237' and contained a
|
||||||
@@ -731,6 +738,7 @@ int MarkInterval = 20 * 60; /* interval
|
@@ -731,6 +738,7 @@
|
||||||
int MarkSeq = 0; /* mark sequence number */
|
int MarkSeq = 0; /* mark sequence number */
|
||||||
int NoFork = 0; /* don't fork - don't run in daemon mode */
|
int NoFork = 0; /* don't fork - don't run in daemon mode */
|
||||||
int AcceptRemote = 0; /* receive messages that come via UDP */
|
int AcceptRemote = 0; /* receive messages that come via UDP */
|
||||||
@ -48,7 +44,7 @@ Index: syslogd.c
|
|||||||
char **StripDomains = NULL; /* these domains may be stripped before writing logs */
|
char **StripDomains = NULL; /* these domains may be stripped before writing logs */
|
||||||
char **LocalHosts = NULL; /* these hosts are logged with their hostname */
|
char **LocalHosts = NULL; /* these hosts are logged with their hostname */
|
||||||
int NoHops = 1; /* Can we bounce syslog messages through an
|
int NoHops = 1; /* Can we bounce syslog messages through an
|
||||||
@@ -829,7 +837,7 @@ int main(argc, argv)
|
@@ -829,7 +837,7 @@
|
||||||
funix[i] = -1;
|
funix[i] = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,7 +53,7 @@ Index: syslogd.c
|
|||||||
switch((char)ch) {
|
switch((char)ch) {
|
||||||
case 'a':
|
case 'a':
|
||||||
if (nfunix < MAXFUNIX)
|
if (nfunix < MAXFUNIX)
|
||||||
@@ -874,6 +882,10 @@ int main(argc, argv)
|
@@ -874,6 +882,10 @@
|
||||||
}
|
}
|
||||||
StripDomains = crunch_list(optarg);
|
StripDomains = crunch_list(optarg);
|
||||||
break;
|
break;
|
||||||
@ -68,7 +64,7 @@ Index: syslogd.c
|
|||||||
case 'v':
|
case 'v':
|
||||||
printf("syslogd %s.%s\n", VERSION, PATCHLEVEL);
|
printf("syslogd %s.%s\n", VERSION, PATCHLEVEL);
|
||||||
exit (0);
|
exit (0);
|
||||||
@@ -1771,8 +1783,19 @@ void fprintlog(f, from, flags, msg)
|
@@ -1771,8 +1783,19 @@
|
||||||
dprintf("Not sending message to remote.\n");
|
dprintf("Not sending message to remote.\n");
|
||||||
else {
|
else {
|
||||||
f->f_time = now;
|
f->f_time = now;
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
Index: klogd.c
|
--- klogd.c
|
||||||
===================================================================
|
+++ klogd.c Tue Sep 9 14:15:47 2003
|
||||||
--- klogd.c.orig 2001-03-11 20:40:10.000000000 +0100
|
@@ -879,7 +879,7 @@
|
||||||
+++ klogd.c 2009-11-24 18:12:53.393383000 +0100
|
|
||||||
@@ -879,7 +879,7 @@ static void LogLine(char *ptr, int len)
|
|
||||||
{
|
{
|
||||||
auto int sym_space;
|
auto int sym_space;
|
||||||
|
|
||||||
@ -11,7 +9,7 @@ Index: klogd.c
|
|||||||
auto struct symbol sym;
|
auto struct symbol sym;
|
||||||
auto char *symbol;
|
auto char *symbol;
|
||||||
|
|
||||||
@@ -904,7 +904,7 @@ static void LogLine(char *ptr, int len)
|
@@ -904,7 +904,7 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20,10 +18,8 @@ Index: klogd.c
|
|||||||
symbol, sym.offset, sym.size );
|
symbol, sym.offset, sym.size );
|
||||||
|
|
||||||
space = sym_space + delta;
|
space = sym_space + delta;
|
||||||
Index: ksym.c
|
--- ksym.c
|
||||||
===================================================================
|
+++ ksym.c Tue Sep 9 14:15:47 2003
|
||||||
--- ksym.c.orig 2009-11-24 18:12:52.901406000 +0100
|
|
||||||
+++ ksym.c 2009-11-24 18:12:53.397383000 +0100
|
|
||||||
@@ -122,7 +122,7 @@
|
@@ -122,7 +122,7 @@
|
||||||
/* Variables static to this module. */
|
/* Variables static to this module. */
|
||||||
struct sym_table
|
struct sym_table
|
||||||
@ -33,7 +29,7 @@ Index: ksym.c
|
|||||||
char *name;
|
char *name;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ extern int debugging;
|
@@ -151,7 +151,7 @@
|
||||||
|
|
||||||
/* Function prototypes. */
|
/* Function prototypes. */
|
||||||
static char * FindSymbolFile(void);
|
static char * FindSymbolFile(void);
|
||||||
@ -42,7 +38,7 @@ Index: ksym.c
|
|||||||
static void FreeSymbols(void);
|
static void FreeSymbols(void);
|
||||||
static int CheckVersion(char *);
|
static int CheckVersion(char *);
|
||||||
static int CheckMapVersion(char *);
|
static int CheckMapVersion(char *);
|
||||||
@@ -185,7 +185,7 @@ extern int InitKsyms(mapfile)
|
@@ -185,7 +185,7 @@
|
||||||
|
|
||||||
auto int version = 0;
|
auto int version = 0;
|
||||||
|
|
||||||
@ -51,7 +47,7 @@ Index: ksym.c
|
|||||||
|
|
||||||
auto FILE *sym_file;
|
auto FILE *sym_file;
|
||||||
|
|
||||||
@@ -237,16 +237,24 @@ extern int InitKsyms(mapfile)
|
@@ -237,16 +237,24 @@
|
||||||
*/
|
*/
|
||||||
while ( !feof(sym_file) )
|
while ( !feof(sym_file) )
|
||||||
{
|
{
|
||||||
@ -78,7 +74,7 @@ Index: ksym.c
|
|||||||
|
|
||||||
if ( AddSymbol(address, sym) == 0 )
|
if ( AddSymbol(address, sym) == 0 )
|
||||||
{
|
{
|
||||||
@@ -521,7 +529,7 @@ static int CheckMapVersion(fname)
|
@@ -521,7 +529,7 @@
|
||||||
{
|
{
|
||||||
int version;
|
int version;
|
||||||
FILE *sym_file;
|
FILE *sym_file;
|
||||||
@ -87,7 +83,7 @@ Index: ksym.c
|
|||||||
auto char type,
|
auto char type,
|
||||||
sym[512];
|
sym[512];
|
||||||
|
|
||||||
@@ -536,16 +544,24 @@ static int CheckMapVersion(fname)
|
@@ -536,16 +544,24 @@
|
||||||
version = 0;
|
version = 0;
|
||||||
while ( !feof(sym_file) && (version == 0) )
|
while ( !feof(sym_file) && (version == 0) )
|
||||||
{
|
{
|
||||||
@ -114,7 +110,7 @@ Index: ksym.c
|
|||||||
|
|
||||||
version = CheckVersion(sym);
|
version = CheckVersion(sym);
|
||||||
}
|
}
|
||||||
@@ -583,7 +599,7 @@ static int CheckMapVersion(fname)
|
@@ -583,7 +599,7 @@
|
||||||
* Purpose: This function is responsible for adding a symbol name
|
* Purpose: This function is responsible for adding a symbol name
|
||||||
* and its address to the symbol table.
|
* and its address to the symbol table.
|
||||||
*
|
*
|
||||||
@ -123,7 +119,7 @@ Index: ksym.c
|
|||||||
*
|
*
|
||||||
* Return: int
|
* Return: int
|
||||||
*
|
*
|
||||||
@@ -593,7 +609,7 @@ static int CheckMapVersion(fname)
|
@@ -593,7 +609,7 @@
|
||||||
|
|
||||||
static int AddSymbol(address, symbol)
|
static int AddSymbol(address, symbol)
|
||||||
|
|
||||||
@ -132,7 +128,7 @@ Index: ksym.c
|
|||||||
|
|
||||||
char *symbol;
|
char *symbol;
|
||||||
|
|
||||||
@@ -639,7 +655,7 @@ static int AddSymbol(address, symbol)
|
@@ -639,7 +655,7 @@
|
||||||
|
|
||||||
char * LookupSymbol(value, sym)
|
char * LookupSymbol(value, sym)
|
||||||
|
|
||||||
@ -141,7 +137,7 @@ Index: ksym.c
|
|||||||
|
|
||||||
struct symbol *sym;
|
struct symbol *sym;
|
||||||
|
|
||||||
@@ -739,7 +755,7 @@ extern char * ExpandKadds(line, el)
|
@@ -739,7 +755,7 @@
|
||||||
*symbol;
|
*symbol;
|
||||||
|
|
||||||
char num[15];
|
char num[15];
|
||||||
@ -150,7 +146,7 @@ Index: ksym.c
|
|||||||
|
|
||||||
auto struct symbol sym;
|
auto struct symbol sym;
|
||||||
|
|
||||||
@@ -821,7 +837,7 @@ extern char * ExpandKadds(line, el)
|
@@ -821,7 +837,7 @@
|
||||||
value = strtol(kp2, (char **) 0, 16);
|
value = strtol(kp2, (char **) 0, 16);
|
||||||
if ( (symbol = LookupSymbol(value, &sym)) ) {
|
if ( (symbol = LookupSymbol(value, &sym)) ) {
|
||||||
if (sym.size)
|
if (sym.size)
|
||||||
@ -159,7 +155,7 @@ Index: ksym.c
|
|||||||
else
|
else
|
||||||
elp += sprintf(elp, " (%s)", symbol);
|
elp += sprintf(elp, " (%s)", symbol);
|
||||||
}
|
}
|
||||||
@@ -830,7 +846,7 @@ extern char * ExpandKadds(line, el)
|
@@ -830,7 +846,7 @@
|
||||||
value = strtol(kp3, (char **) 0, 16);
|
value = strtol(kp3, (char **) 0, 16);
|
||||||
if ( (symbol = LookupSymbol(value, &sym)) ) {
|
if ( (symbol = LookupSymbol(value, &sym)) ) {
|
||||||
if (sym.size)
|
if (sym.size)
|
||||||
@ -168,7 +164,7 @@ Index: ksym.c
|
|||||||
else
|
else
|
||||||
elp += sprintf(elp, " (%s)", symbol);
|
elp += sprintf(elp, " (%s)", symbol);
|
||||||
}
|
}
|
||||||
@@ -841,7 +857,7 @@ extern char * ExpandKadds(line, el)
|
@@ -841,7 +857,7 @@
|
||||||
value = strtol(kp2, (char **) 0, 16);
|
value = strtol(kp2, (char **) 0, 16);
|
||||||
if ( (symbol = LookupSymbol(value, &sym)) ) {
|
if ( (symbol = LookupSymbol(value, &sym)) ) {
|
||||||
if (sym.size)
|
if (sym.size)
|
||||||
@ -177,7 +173,7 @@ Index: ksym.c
|
|||||||
else
|
else
|
||||||
elp += sprintf(elp, " (%s)", symbol);
|
elp += sprintf(elp, " (%s)", symbol);
|
||||||
}
|
}
|
||||||
@@ -877,17 +893,24 @@ extern char * ExpandKadds(line, el)
|
@@ -877,17 +893,24 @@
|
||||||
strcat(elp, symbol);
|
strcat(elp, symbol);
|
||||||
elp += strlen(symbol);
|
elp += strlen(symbol);
|
||||||
if ( debugging )
|
if ( debugging )
|
||||||
@ -204,10 +200,8 @@ Index: ksym.c
|
|||||||
}
|
}
|
||||||
strncat(elp, kp, value);
|
strncat(elp, kp, value);
|
||||||
elp += value;
|
elp += value;
|
||||||
Index: ksym_mod.c
|
--- ksym_mod.c
|
||||||
===================================================================
|
+++ ksym_mod.c Tue Sep 9 16:51:08 2003
|
||||||
--- ksym_mod.c.orig 2000-09-12 23:15:28.000000000 +0200
|
|
||||||
+++ ksym_mod.c 2009-11-24 18:12:53.402379000 +0100
|
|
||||||
@@ -89,43 +89,101 @@
|
@@ -89,43 +89,101 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/fcntl.h>
|
#include <sys/fcntl.h>
|
||||||
@ -335,7 +329,7 @@ Index: ksym_mod.c
|
|||||||
char *name;
|
char *name;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -136,9 +194,7 @@ struct Module
|
@@ -136,9 +194,7 @@
|
||||||
|
|
||||||
char *name;
|
char *name;
|
||||||
struct module module;
|
struct module module;
|
||||||
@ -345,7 +339,7 @@ Index: ksym_mod.c
|
|||||||
};
|
};
|
||||||
|
|
||||||
static int num_modules = 0;
|
static int num_modules = 0;
|
||||||
@@ -155,8 +211,8 @@ extern int debugging;
|
@@ -155,8 +211,8 @@
|
||||||
|
|
||||||
/* Function prototypes. */
|
/* Function prototypes. */
|
||||||
static void FreeModules(void);
|
static void FreeModules(void);
|
||||||
@ -356,7 +350,7 @@ Index: ksym_mod.c
|
|||||||
static int symsort(const void *, const void *);
|
static int symsort(const void *, const void *);
|
||||||
|
|
||||||
|
|
||||||
@@ -344,7 +400,7 @@ static void FreeModules()
|
@@ -344,7 +400,7 @@
|
||||||
* Purpose: This function is responsible for adding a module to
|
* Purpose: This function is responsible for adding a module to
|
||||||
* the list of currently loaded modules.
|
* the list of currently loaded modules.
|
||||||
*
|
*
|
||||||
@ -365,7 +359,7 @@ Index: ksym_mod.c
|
|||||||
*
|
*
|
||||||
* address:-> The address of the module.
|
* address:-> The address of the module.
|
||||||
*
|
*
|
||||||
@@ -355,7 +411,7 @@ static void FreeModules()
|
@@ -355,7 +411,7 @@
|
||||||
|
|
||||||
static int AddModule(address, symbol)
|
static int AddModule(address, symbol)
|
||||||
|
|
||||||
@ -374,7 +368,7 @@ Index: ksym_mod.c
|
|||||||
|
|
||||||
char *symbol;
|
char *symbol;
|
||||||
|
|
||||||
@@ -403,10 +459,14 @@ static int AddModule(address, symbol)
|
@@ -403,10 +459,14 @@
|
||||||
Syslog(LOG_WARNING, "Error opening /dev/kmem\n");
|
Syslog(LOG_WARNING, "Error opening /dev/kmem\n");
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
@ -390,7 +384,7 @@ Index: ksym_mod.c
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
if ( read(memfd, \
|
if ( read(memfd, \
|
||||||
@@ -450,7 +510,7 @@ static int AddModule(address, symbol)
|
@@ -450,7 +510,7 @@
|
||||||
* Purpose: This function is responsible for adding a symbol name
|
* Purpose: This function is responsible for adding a symbol name
|
||||||
* and its address to the symbol table.
|
* and its address to the symbol table.
|
||||||
*
|
*
|
||||||
@ -399,7 +393,7 @@ Index: ksym_mod.c
|
|||||||
*
|
*
|
||||||
* mp:-> A pointer to the module which the symbol is
|
* mp:-> A pointer to the module which the symbol is
|
||||||
* to be added to.
|
* to be added to.
|
||||||
@@ -469,7 +529,7 @@ static int AddSymbol(mp, address, symbol
|
@@ -469,7 +529,7 @@
|
||||||
|
|
||||||
struct Module *mp;
|
struct Module *mp;
|
||||||
|
|
||||||
@ -408,7 +402,7 @@ Index: ksym_mod.c
|
|||||||
|
|
||||||
char *symbol;
|
char *symbol;
|
||||||
|
|
||||||
@@ -508,7 +568,7 @@ static int AddSymbol(mp, address, symbol
|
@@ -508,7 +568,7 @@
|
||||||
* Purpose: Find the symbol which is related to the given address from
|
* Purpose: Find the symbol which is related to the given address from
|
||||||
* a kernel module.
|
* a kernel module.
|
||||||
*
|
*
|
||||||
@ -417,7 +411,7 @@ Index: ksym_mod.c
|
|||||||
*
|
*
|
||||||
* value:-> The address to be located.
|
* value:-> The address to be located.
|
||||||
*
|
*
|
||||||
@@ -524,7 +584,7 @@ static int AddSymbol(mp, address, symbol
|
@@ -524,7 +584,7 @@
|
||||||
|
|
||||||
extern char * LookupModuleSymbol(value, sym)
|
extern char * LookupModuleSymbol(value, sym)
|
||||||
|
|
||||||
@ -426,7 +420,7 @@ Index: ksym_mod.c
|
|||||||
|
|
||||||
struct symbol *sym;
|
struct symbol *sym;
|
||||||
|
|
||||||
@@ -574,15 +634,9 @@ extern char * LookupModuleSymbol(value,
|
@@ -574,15 +634,9 @@
|
||||||
* If it is in this range we can at least return the
|
* If it is in this range we can at least return the
|
||||||
* name of the module.
|
* name of the module.
|
||||||
*/
|
*/
|
||||||
@ -443,7 +437,7 @@ Index: ksym_mod.c
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* A special case needs to be checked for. The above
|
* A special case needs to be checked for. The above
|
||||||
@@ -601,13 +655,8 @@ extern char * LookupModuleSymbol(value,
|
@@ -601,13 +655,8 @@
|
||||||
if ( mp->num_syms > 0 )
|
if ( mp->num_syms > 0 )
|
||||||
{
|
{
|
||||||
last = &mp->sym_array[mp->num_syms - 1];
|
last = &mp->sym_array[mp->num_syms - 1];
|
||||||
@ -458,7 +452,7 @@ Index: ksym_mod.c
|
|||||||
sym->offset = value - last->value;
|
sym->offset = value - last->value;
|
||||||
return(last->name);
|
return(last->name);
|
||||||
}
|
}
|
||||||
@@ -617,12 +666,8 @@ extern char * LookupModuleSymbol(value,
|
@@ -617,12 +666,8 @@
|
||||||
* Return the module name and the offset of the
|
* Return the module name and the offset of the
|
||||||
* faulting address in the module.
|
* faulting address in the module.
|
||||||
*/
|
*/
|
||||||
@ -472,10 +466,8 @@ Index: ksym_mod.c
|
|||||||
return(mp->name);
|
return(mp->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Index: ksyms.h
|
--- ksyms.h
|
||||||
===================================================================
|
+++ ksyms.h Tue Sep 9 14:15:47 2003
|
||||||
--- ksyms.h.orig 1997-06-13 11:35:55.000000000 +0200
|
|
||||||
+++ ksyms.h 2009-11-24 18:12:53.406377000 +0100
|
|
||||||
@@ -20,16 +20,19 @@
|
@@ -20,16 +20,19 @@
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
@ -2,10 +2,8 @@
|
|||||||
ksym_mod.c | 3 ++-
|
ksym_mod.c | 3 ++-
|
||||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
Index: ksym_mod.c
|
--- a/ksym_mod.c
|
||||||
===================================================================
|
+++ b/ksym_mod.c
|
||||||
--- ksym_mod.c.orig 2009-11-24 18:12:53.402379000 +0100
|
|
||||||
+++ ksym_mod.c 2009-11-24 18:12:56.016116000 +0100
|
|
||||||
@@ -91,7 +91,6 @@
|
@@ -91,7 +91,6 @@
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
Index: klogd.c
|
--- sysklogd-1.4.1/klogd.c 2004-07-27 13:45:33.000000000 +0200
|
||||||
===================================================================
|
+++ sysklogd-1.4.1/klogd.c 2004-07-27 13:53:48.985727118 +0200
|
||||||
--- klogd.c.orig 2009-11-24 18:12:53.393383000 +0100
|
@@ -299,8 +299,10 @@
|
||||||
+++ klogd.c 2009-11-24 18:12:54.840288000 +0100
|
|
||||||
@@ -299,8 +299,10 @@ static int use_syscall = 0,
|
|
||||||
no_fork = 0; /* don't fork - don't run in daemon mode */
|
no_fork = 0; /* don't fork - don't run in daemon mode */
|
||||||
|
|
||||||
static char *symfile = (char *) 0,
|
static char *symfile = (char *) 0,
|
||||||
@ -14,7 +12,7 @@ Index: klogd.c
|
|||||||
static FILE *output_file = (FILE *) 0;
|
static FILE *output_file = (FILE *) 0;
|
||||||
|
|
||||||
static enum LOGSRC {none, proc, kernel} logsrc;
|
static enum LOGSRC {none, proc, kernel} logsrc;
|
||||||
@@ -937,8 +939,8 @@ static void LogKernelLine(void)
|
@@ -937,8 +939,8 @@
|
||||||
* which will contain old messages. Then read the kernel log
|
* which will contain old messages. Then read the kernel log
|
||||||
* messages into this fresh buffer.
|
* messages into this fresh buffer.
|
||||||
*/
|
*/
|
||||||
@ -25,7 +23,7 @@ Index: klogd.c
|
|||||||
{
|
{
|
||||||
if ( errno == EINTR )
|
if ( errno == EINTR )
|
||||||
return;
|
return;
|
||||||
@@ -962,8 +964,8 @@ static void LogProcLine(void)
|
@@ -962,8 +964,8 @@
|
||||||
* which will contain old messages. Then read the kernel messages
|
* which will contain old messages. Then read the kernel messages
|
||||||
* from the message pseudo-file into this fresh buffer.
|
* from the message pseudo-file into this fresh buffer.
|
||||||
*/
|
*/
|
||||||
@ -36,7 +34,7 @@ Index: klogd.c
|
|||||||
{
|
{
|
||||||
if ( errno == EINTR )
|
if ( errno == EINTR )
|
||||||
return;
|
return;
|
||||||
@@ -976,6 +978,44 @@ static void LogProcLine(void)
|
@@ -976,6 +978,44 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +79,7 @@ Index: klogd.c
|
|||||||
|
|
||||||
int main(argc, argv)
|
int main(argc, argv)
|
||||||
|
|
||||||
@@ -1053,6 +1093,8 @@ int main(argc, argv)
|
@@ -1053,6 +1093,8 @@
|
||||||
console_log_level = *log_level - '0';
|
console_log_level = *log_level - '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
Index: Makefile
|
--- Makefile
|
||||||
===================================================================
|
+++ Makefile Tue May 20 13:15:53 2003
|
||||||
--- Makefile.orig 2009-11-24 18:12:53.137377000 +0100
|
@@ -29,7 +29,7 @@
|
||||||
+++ Makefile 2009-11-24 18:12:53.675378000 +0100
|
|
||||||
@@ -29,7 +29,7 @@ MANDIR = /usr/man
|
|
||||||
|
|
||||||
# The following define determines whether the package adheres to the
|
# The following define determines whether the package adheres to the
|
||||||
# file system standard.
|
# file system standard.
|
||||||
@ -11,11 +9,9 @@ Index: Makefile
|
|||||||
|
|
||||||
# The following define establishes ownership for the man pages.
|
# The following define establishes ownership for the man pages.
|
||||||
# Avery tells me that there is a difference between Debian and
|
# Avery tells me that there is a difference between Debian and
|
||||||
Index: syslogd.c
|
--- syslogd.c
|
||||||
===================================================================
|
+++ syslogd.c Tue May 20 13:12:35 2003
|
||||||
--- syslogd.c.orig 2009-11-24 18:12:53.143385000 +0100
|
@@ -992,6 +992,7 @@
|
||||||
+++ syslogd.c 2009-11-24 18:12:53.679395000 +0100
|
|
||||||
@@ -1030,6 +1030,7 @@ int main(argc, argv)
|
|
||||||
(void) signal(SIGCHLD, reapchild);
|
(void) signal(SIGCHLD, reapchild);
|
||||||
(void) signal(SIGALRM, domark);
|
(void) signal(SIGALRM, domark);
|
||||||
(void) signal(SIGUSR1, Debug ? debug_switch : SIG_IGN);
|
(void) signal(SIGUSR1, Debug ? debug_switch : SIG_IGN);
|
||||||
@ -23,7 +19,7 @@ Index: syslogd.c
|
|||||||
(void) alarm(TIMERINTVL);
|
(void) alarm(TIMERINTVL);
|
||||||
|
|
||||||
/* Create a partial message table for all file descriptors. */
|
/* Create a partial message table for all file descriptors. */
|
||||||
@@ -2023,7 +2024,7 @@ void fprintlog(f, from, flags, msg)
|
@@ -1852,7 +1853,7 @@
|
||||||
errno = e;
|
errno = e;
|
||||||
logerror(f->f_un.f_fname);
|
logerror(f->f_un.f_fname);
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
Index: syslogd.c
|
--- syslogd.c 2003/09/29 08:49:24 1.1
|
||||||
===================================================================
|
+++ syslogd.c 2003/09/29 08:50:05
|
||||||
--- syslogd.c.orig 2009-11-24 18:12:53.926309000 +0100
|
@@ -1311,6 +1311,7 @@
|
||||||
+++ syslogd.c 2009-11-24 18:12:54.408310000 +0100
|
|
||||||
@@ -1305,6 +1305,7 @@ static int create_inet_socket()
|
|
||||||
close(fd);
|
close(fd);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -10,7 +8,7 @@ Index: syslogd.c
|
|||||||
/* We need to enable BSD compatibility. Otherwise an attacker
|
/* We need to enable BSD compatibility. Otherwise an attacker
|
||||||
* could flood our log files by sending us tons of ICMP errors.
|
* could flood our log files by sending us tons of ICMP errors.
|
||||||
*/
|
*/
|
||||||
@@ -1314,6 +1315,7 @@ static int create_inet_socket()
|
@@ -1320,6 +1321,7 @@
|
||||||
close(fd);
|
close(fd);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
Index: fortify.h
|
--- fortify.h
|
||||||
===================================================================
|
+++ fortify.h 2008-05-30 12:18:14.874490898 +0200
|
||||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
||||||
+++ fortify.h 2009-11-24 18:12:56.934029000 +0100
|
|
||||||
@@ -0,0 +1,17 @@
|
@@ -0,0 +1,17 @@
|
||||||
+#if defined(__USE_FORTIFY_LEVEL)
|
+#if defined(__USE_FORTIFY_LEVEL)
|
||||||
+# undef syslog
|
+# undef syslog
|
||||||
@ -20,10 +18,8 @@ Index: fortify.h
|
|||||||
+# define closelog priv_closelog
|
+# define closelog priv_closelog
|
||||||
+# define setlogmask priv_setlogmask
|
+# define setlogmask priv_setlogmask
|
||||||
+#endif
|
+#endif
|
||||||
Index: klogd.c
|
--- klogd.c
|
||||||
===================================================================
|
+++ klogd.c 2008-05-30 12:19:59.501151202 +0200
|
||||||
--- klogd.c.orig 2009-11-24 18:12:56.685124000 +0100
|
|
||||||
+++ klogd.c 2009-11-24 18:12:56.937035000 +0100
|
|
||||||
@@ -286,6 +286,8 @@ static char *PidFile = "/etc/klogd.pid";
|
@@ -286,6 +286,8 @@ static char *PidFile = "/etc/klogd.pid";
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
@ -33,10 +29,8 @@ Index: klogd.c
|
|||||||
static int kmsg,
|
static int kmsg,
|
||||||
change_state = 0,
|
change_state = 0,
|
||||||
terminate = 0,
|
terminate = 0,
|
||||||
Index: syslog.c
|
--- syslog.c
|
||||||
===================================================================
|
+++ syslog.c 2008-05-30 12:20:24.799728870 +0200
|
||||||
--- syslog.c.orig 2009-11-24 18:12:54.173290000 +0100
|
|
||||||
+++ syslog.c 2009-11-24 18:12:56.940031000 +0100
|
|
||||||
@@ -72,6 +72,8 @@ static char sccsid[] = "@(#)syslog.c 5.2
|
@@ -72,6 +72,8 @@ static char sccsid[] = "@(#)syslog.c 5.2
|
||||||
|
|
||||||
#define _PATH_LOGNAME "/dev/log"
|
#define _PATH_LOGNAME "/dev/log"
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
Index: syslogd.c
|
diff -ur sysklogd-1.4.1.orig/syslogd.c sysklogd-1.4.1/syslogd.c
|
||||||
===================================================================
|
--- sysklogd-1.4.1.orig/syslogd.c Sun Mar 11 19:40:10 2001
|
||||||
--- syslogd.c.orig 2009-11-24 18:12:54.408310000 +0100
|
+++ sysklogd-1.4.1/syslogd.c Sun Apr 18 01:42:21 2004
|
||||||
+++ syslogd.c 2009-11-24 18:12:54.611301000 +0100
|
@@ -1254,30 +1254,26 @@
|
||||||
@@ -1336,30 +1336,26 @@ char **
|
|
||||||
crunch_list(list)
|
crunch_list(list)
|
||||||
char *list;
|
char *list;
|
||||||
{
|
{
|
||||||
@ -41,7 +40,7 @@ Index: syslogd.c
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1367,30 +1363,28 @@ crunch_list(list)
|
@@ -1285,30 +1281,28 @@
|
||||||
* characters are different from any delimiters,
|
* characters are different from any delimiters,
|
||||||
* so we don't have to care about this.
|
* so we don't have to care about this.
|
||||||
*/
|
*/
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
Index: klogd.c
|
--- sysklogd-1.4.1rh/klogd.c.preserve_percents 2002-04-17 10:49:34.000000000 -0400
|
||||||
===================================================================
|
+++ sysklogd-1.4.1rh/klogd.c 2004-12-02 15:58:17.026614000 -0500
|
||||||
--- klogd.c.orig 2009-11-24 18:12:54.840288000 +0100
|
@@ -741,7 +741,7 @@
|
||||||
+++ klogd.c 2009-11-24 18:12:55.564210000 +0100
|
|
||||||
@@ -740,7 +740,7 @@ static void LogLine(char *ptr, int len)
|
|
||||||
switch( parse_state )
|
switch( parse_state )
|
||||||
{
|
{
|
||||||
case PARSING_TEXT:
|
case PARSING_TEXT:
|
||||||
@ -11,7 +9,7 @@ Index: klogd.c
|
|||||||
line += delta;
|
line += delta;
|
||||||
ptr += delta;
|
ptr += delta;
|
||||||
space -= delta;
|
space -= delta;
|
||||||
@@ -796,30 +796,9 @@ static void LogLine(char *ptr, int len)
|
@@ -797,30 +797,9 @@
|
||||||
parse_state = PARSING_SYMSTART; /* at < */
|
parse_state = PARSING_SYMSTART; /* at < */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -9,11 +9,9 @@
|
|||||||
#
|
#
|
||||||
# Author: mt@suse.de
|
# Author: mt@suse.de
|
||||||
#
|
#
|
||||||
Index: syslog.c
|
--- syslog.c
|
||||||
===================================================================
|
+++ syslog.c 2003/08/26 11:34:34
|
||||||
--- syslog.c.orig 2009-11-24 18:12:52.145473000 +0100
|
@@ -102,7 +102,7 @@
|
||||||
+++ syslog.c 2009-11-24 18:12:54.173290000 +0100
|
|
||||||
@@ -97,7 +97,7 @@ vsyslog(pri, fmt, ap)
|
|
||||||
register int cnt;
|
register int cnt;
|
||||||
register char *p;
|
register char *p;
|
||||||
time_t now;
|
time_t now;
|
||||||
@ -22,7 +20,7 @@ Index: syslog.c
|
|||||||
char tbuf[2048], fmt_cpy[1024], *stdp = (char *) 0;
|
char tbuf[2048], fmt_cpy[1024], *stdp = (char *) 0;
|
||||||
|
|
||||||
saved_errno = errno;
|
saved_errno = errno;
|
||||||
@@ -167,7 +167,16 @@ vsyslog(pri, fmt, ap)
|
@@ -172,7 +172,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* output the message to the local logger */
|
/* output the message to the local logger */
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
Index: sysklogd.8
|
--- sysklogd.8.orig 2005-05-23 09:48:29.030220794 -0500
|
||||||
===================================================================
|
+++ sysklogd.8 2005-05-23 09:48:34.564338699 -0500
|
||||||
--- sysklogd.8.orig 2009-11-24 18:12:52.655464000 +0100
|
|
||||||
+++ sysklogd.8 2009-11-24 18:12:55.314207000 +0100
|
|
||||||
@@ -31,6 +31,7 @@ sysklogd \- Linux system logging utiliti
|
@@ -31,6 +31,7 @@ sysklogd \- Linux system logging utiliti
|
||||||
]
|
]
|
||||||
.RB [ " \-t " ]
|
.RB [ " \-t " ]
|
||||||
@ -39,10 +37,8 @@ Index: sysklogd.8
|
|||||||
.LP
|
.LP
|
||||||
.SH SIGNALS
|
.SH SIGNALS
|
||||||
.B Syslogd
|
.B Syslogd
|
||||||
Index: syslogd.c
|
--- syslogd.c 2005-05-23 09:48:29.031197346 -0500
|
||||||
===================================================================
|
+++ syslogd.c.orig 2005-05-23 09:48:55.354145686 -0500
|
||||||
--- syslogd.c.orig 2009-11-24 18:12:55.083205000 +0100
|
|
||||||
+++ syslogd.c 2009-11-24 18:12:55.320216000 +0100
|
|
||||||
@@ -594,6 +594,9 @@ int funix[MAXFUNIX] = { -1, };
|
@@ -594,6 +594,9 @@ int funix[MAXFUNIX] = { -1, };
|
||||||
#define SYNC_FILE 0x002 /* do fsync on file after printing */
|
#define SYNC_FILE 0x002 /* do fsync on file after printing */
|
||||||
#define ADDDATE 0x004 /* add a date to the message */
|
#define ADDDATE 0x004 /* add a date to the message */
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
Index: syslogd.c
|
--- syslogd.c
|
||||||
===================================================================
|
+++ syslogd.c 2008-03-26 17:45:54.247851855 +0100
|
||||||
--- syslogd.c.orig 2009-11-24 18:12:55.787215000 +0100
|
|
||||||
+++ syslogd.c 2009-11-24 18:12:56.480126000 +0100
|
|
||||||
@@ -770,6 +770,9 @@ extern int errno;
|
@@ -770,6 +770,9 @@ extern int errno;
|
||||||
int main(int argc, char **argv);
|
int main(int argc, char **argv);
|
||||||
char **crunch_list(char *list);
|
char **crunch_list(char *list);
|
||||||
@ -160,16 +158,16 @@ Index: syslogd.c
|
|||||||
+{
|
+{
|
||||||
+ char buf[100];
|
+ char buf[100];
|
||||||
+ leave++;
|
+ leave++;
|
||||||
|
+
|
||||||
- int sig;
|
|
||||||
-
|
|
||||||
+ dprintf("syslogd: exiting on signal %d\n", sig);
|
+ dprintf("syslogd: exiting on signal %d\n", sig);
|
||||||
+ (void) snprintf(buf, sizeof(buf), "exiting on signal %d", sig);
|
+ (void) snprintf(buf, sizeof(buf), "exiting on signal %d", sig);
|
||||||
+ errno = 0;
|
+ errno = 0;
|
||||||
+ logmsg(LOG_SYSLOG|LOG_INFO, buf, LocalHostName, ADDDATE);
|
+ logmsg(LOG_SYSLOG|LOG_INFO, buf, LocalHostName, ADDDATE);
|
||||||
+ signal(sig, SIG_IGN);
|
+ signal(sig, SIG_IGN);
|
||||||
+}
|
+}
|
||||||
+
|
|
||||||
|
- int sig;
|
||||||
|
-
|
||||||
+void dienow(void)
|
+void dienow(void)
|
||||||
{
|
{
|
||||||
register struct filed *f;
|
register struct filed *f;
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
Index: ksym.c
|
--- ksym.c
|
||||||
===================================================================
|
+++ ksym.c Wed May 23 18:50:36 2001
|
||||||
--- ksym.c.orig 2000-09-12 23:53:31.000000000 +0200
|
|
||||||
+++ ksym.c 2009-11-24 18:12:52.424467000 +0100
|
|
||||||
@@ -112,6 +112,7 @@
|
@@ -112,6 +112,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
@ -10,7 +8,7 @@ Index: ksym.c
|
|||||||
#include "klogd.h"
|
#include "klogd.h"
|
||||||
#include "ksyms.h"
|
#include "ksyms.h"
|
||||||
|
|
||||||
@@ -770,6 +771,84 @@ extern char * ExpandKadds(line, el)
|
@@ -770,6 +771,84 @@
|
||||||
if ( (num_syms == 0) ||
|
if ( (num_syms == 0) ||
|
||||||
(kp = strstr(line, "[<")) == (char *) 0 )
|
(kp = strstr(line, "[<")) == (char *) 0 )
|
||||||
{
|
{
|
||||||
|
@ -17,11 +17,9 @@ Signed-off-by: Jeff Mahoney <jeffm@suse.com>
|
|||||||
klogd.c | 22 ++++++++++++++++++++++
|
klogd.c | 22 ++++++++++++++++++++++
|
||||||
1 file changed, 22 insertions(+)
|
1 file changed, 22 insertions(+)
|
||||||
|
|
||||||
Index: klogd.c
|
--- sysklogd-1.4.1/klogd.c
|
||||||
===================================================================
|
+++ sysklogd-1.4.1/klogd.c 2009-08-12 14:19:17.333901686 +0200
|
||||||
--- klogd.c.orig 2009-11-24 18:12:56.937035000 +0100
|
@@ -275,6 +275,8 @@
|
||||||
+++ klogd.c 2009-11-24 18:12:57.166028000 +0100
|
|
||||||
@@ -275,6 +275,8 @@ _syscall3(int,ksyslog,int, type, char *,
|
|
||||||
#define ksyslog klogctl
|
#define ksyslog klogctl
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -30,7 +28,7 @@ Index: klogd.c
|
|||||||
#define LOG_BUFFER_SIZE 4096
|
#define LOG_BUFFER_SIZE 4096
|
||||||
#define LOG_LINE_LENGTH 1000
|
#define LOG_LINE_LENGTH 1000
|
||||||
|
|
||||||
@@ -999,6 +1001,23 @@ static void SetBufSize(void)
|
@@ -999,6 +1001,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,7 +52,7 @@ Index: klogd.c
|
|||||||
|
|
||||||
int main(argc, argv)
|
int main(argc, argv)
|
||||||
|
|
||||||
@@ -1166,6 +1185,9 @@ int main(argc, argv)
|
@@ -1166,6 +1185,9 @@
|
||||||
else
|
else
|
||||||
openlog("kernel", 0, LOG_KERN);
|
openlog("kernel", 0, LOG_KERN);
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
Index: syslog.conf.5
|
--- syslog.conf.5
|
||||||
===================================================================
|
+++ syslog.conf.5 2004-09-16 13:21:07.144284248 -0700
|
||||||
--- syslog.conf.5.orig 1999-08-21 12:49:14.000000000 +0200
|
@@ -159,6 +159,16 @@
|
||||||
+++ syslog.conf.5 2009-11-24 18:12:55.068205000 +0100
|
|
||||||
@@ -159,6 +159,16 @@ command before
|
|
||||||
.BR syslogd (8)
|
.BR syslogd (8)
|
||||||
is started.
|
is started.
|
||||||
|
|
||||||
@ -19,11 +17,9 @@ Index: syslog.conf.5
|
|||||||
.SS Terminal and Console
|
.SS Terminal and Console
|
||||||
If the file you specified is a tty, special tty-handling is done, same
|
If the file you specified is a tty, special tty-handling is done, same
|
||||||
with
|
with
|
||||||
Index: syslogd.c
|
--- syslogd.c
|
||||||
===================================================================
|
+++ syslogd.c 2004-09-16 13:21:07.150143661 -0700
|
||||||
--- syslogd.c.orig 2009-11-24 18:12:54.611301000 +0100
|
@@ -638,6 +638,10 @@
|
||||||
+++ syslogd.c 2009-11-24 18:12:55.083205000 +0100
|
|
||||||
@@ -633,6 +633,10 @@ struct filed {
|
|
||||||
struct sockaddr_in f_addr;
|
struct sockaddr_in f_addr;
|
||||||
#endif
|
#endif
|
||||||
} f_forw; /* forwarding address */
|
} f_forw; /* forwarding address */
|
||||||
@ -34,7 +30,7 @@ Index: syslogd.c
|
|||||||
char f_fname[MAXFNAME];
|
char f_fname[MAXFNAME];
|
||||||
} f_un;
|
} f_un;
|
||||||
char f_prevline[MAXSVLINE]; /* last message logged */
|
char f_prevline[MAXSVLINE]; /* last message logged */
|
||||||
@@ -644,6 +648,8 @@ struct filed {
|
@@ -649,6 +653,8 @@
|
||||||
int f_repeatcount; /* number of "repeated" msgs */
|
int f_repeatcount; /* number of "repeated" msgs */
|
||||||
int f_flags; /* store some additional flags */
|
int f_flags; /* store some additional flags */
|
||||||
};
|
};
|
||||||
@ -43,7 +39,7 @@ Index: syslogd.c
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Intervals at which we flush out "message repeated" messages,
|
* Intervals at which we flush out "message repeated" messages,
|
||||||
@@ -674,10 +680,11 @@ int repeatinterval[] = { 30, 60 }; /* #
|
@@ -679,10 +685,11 @@
|
||||||
#define F_FORW_SUSP 7 /* suspended host forwarding */
|
#define F_FORW_SUSP 7 /* suspended host forwarding */
|
||||||
#define F_FORW_UNKN 8 /* unknown host forwarding */
|
#define F_FORW_UNKN 8 /* unknown host forwarding */
|
||||||
#define F_PIPE 9 /* named pipe */
|
#define F_PIPE 9 /* named pipe */
|
||||||
@ -56,7 +52,7 @@ Index: syslogd.c
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct filed *Files = (struct filed *) 0;
|
struct filed *Files = (struct filed *) 0;
|
||||||
@@ -1941,6 +1948,32 @@ void fprintlog(f, from, flags, msg)
|
@@ -1949,6 +1956,32 @@
|
||||||
(void) fsync(f->f_file);
|
(void) fsync(f->f_file);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -89,7 +85,7 @@ Index: syslogd.c
|
|||||||
case F_USERS:
|
case F_USERS:
|
||||||
case F_WALL:
|
case F_WALL:
|
||||||
f->f_time = now;
|
f->f_time = now;
|
||||||
@@ -2347,6 +2380,7 @@ void init()
|
@@ -2357,6 +2390,7 @@
|
||||||
case F_PIPE:
|
case F_PIPE:
|
||||||
case F_TTY:
|
case F_TTY:
|
||||||
case F_CONSOLE:
|
case F_CONSOLE:
|
||||||
@ -97,7 +93,7 @@ Index: syslogd.c
|
|||||||
(void) close(f->f_file);
|
(void) close(f->f_file);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2499,7 +2533,11 @@ void init()
|
@@ -2509,7 +2543,11 @@
|
||||||
case F_PIPE:
|
case F_PIPE:
|
||||||
case F_TTY:
|
case F_TTY:
|
||||||
case F_CONSOLE:
|
case F_CONSOLE:
|
||||||
@ -110,7 +106,7 @@ Index: syslogd.c
|
|||||||
if (f->f_file == -1)
|
if (f->f_file == -1)
|
||||||
printf(" (unused)");
|
printf(" (unused)");
|
||||||
break;
|
break;
|
||||||
@@ -2717,8 +2755,37 @@ void cfline(line, f)
|
@@ -2727,8 +2765,37 @@
|
||||||
switch (*p)
|
switch (*p)
|
||||||
{
|
{
|
||||||
case '@':
|
case '@':
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
Index: syslogd.c
|
--- sysklogd-1.4.1/syslogd.c 2004-09-26 11:33:01.771437000 +0900
|
||||||
===================================================================
|
+++ sysklogd-1.4.1/syslogd.c 2004-09-26 11:41:27.136610056 +0900
|
||||||
--- syslogd.c.orig 2009-11-24 18:12:55.320216000 +0100
|
@@ -1539,7 +1539,7 @@
|
||||||
+++ syslogd.c 2009-11-24 18:12:55.787215000 +0100
|
|
||||||
@@ -1538,7 +1538,7 @@ void printline(hname, msg)
|
|
||||||
else if (c < 040) {
|
else if (c < 040) {
|
||||||
*q++ = '^';
|
*q++ = '^';
|
||||||
*q++ = c ^ 0100;
|
*q++ = c ^ 0100;
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
Index: .pkgextract
|
--- .pkgextract
|
||||||
===================================================================
|
+++ .pkgextract 2006-02-08 17:29:50.000000000 +0100
|
||||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
||||||
+++ .pkgextract 2009-11-24 18:12:57.386029000 +0100
|
|
||||||
@@ -0,0 +1,20 @@
|
@@ -0,0 +1,20 @@
|
||||||
+patch -p0 -b --suffix=.dgram -s < ../sysklogd-1.4.1-dgram.patch
|
+patch -p0 -b --suffix=.dgram -s < ../sysklogd-1.4.1-dgram.patch
|
||||||
+patch -p0 -b --suffix=.sparc -s < ../sysklogd-1.4.1-sparc.patch
|
+patch -p0 -b --suffix=.sparc -s < ../sysklogd-1.4.1-sparc.patch
|
||||||
@ -23,10 +21,8 @@ Index: .pkgextract
|
|||||||
+patch -p1 -b --suffix=.sleep -s < ../sysklogd-1.4.1-dontsleep.patch
|
+patch -p1 -b --suffix=.sleep -s < ../sysklogd-1.4.1-dontsleep.patch
|
||||||
+patch -p0 -b --suffix=.signal -s < ../sysklogd-1.4.1-signal.dif
|
+patch -p0 -b --suffix=.signal -s < ../sysklogd-1.4.1-signal.dif
|
||||||
+patch -p0 -b --suffix=.clear -s < ../sysklogd-1.4.1-clearing.patch
|
+patch -p0 -b --suffix=.clear -s < ../sysklogd-1.4.1-clearing.patch
|
||||||
Index: Makefile
|
--- Makefile
|
||||||
===================================================================
|
+++ Makefile 2006-02-08 17:29:50.000000000 +0100
|
||||||
--- Makefile.orig 2009-11-24 18:12:53.916293000 +0100
|
|
||||||
+++ Makefile 2009-11-24 18:12:57.389032000 +0100
|
|
||||||
@@ -1,14 +1,17 @@
|
@@ -1,14 +1,17 @@
|
||||||
# Makefile for syslogd and klogd daemons.
|
# Makefile for syslogd and klogd daemons.
|
||||||
|
|
||||||
@ -77,13 +73,11 @@ Index: Makefile
|
|||||||
+ ${INSTALL} -m 644 syslogd.8 ${DESTDIR}${MANDIR}/man8/syslogd.8
|
+ ${INSTALL} -m 644 syslogd.8 ${DESTDIR}${MANDIR}/man8/syslogd.8
|
||||||
+ ${INSTALL} -m 644 syslog.conf.5 ${DESTDIR}${MANDIR}/man5/syslog.conf.5
|
+ ${INSTALL} -m 644 syslog.conf.5 ${DESTDIR}${MANDIR}/man5/syslog.conf.5
|
||||||
+ ${INSTALL} -m 644 klogd.8 ${DESTDIR}${MANDIR}/man8/klogd.8
|
+ ${INSTALL} -m 644 klogd.8 ${DESTDIR}${MANDIR}/man8/klogd.8
|
||||||
Index: klogd.c
|
--- klogd.c
|
||||||
===================================================================
|
+++ klogd.c 2008-05-30 12:23:07.616318420 +0200
|
||||||
--- klogd.c.orig 2009-11-24 18:12:57.166028000 +0100
|
@@ -275,15 +275,21 @@ _syscall3(int,ksyslog,int, type, char *,
|
||||||
+++ klogd.c 2009-11-24 18:12:57.393037000 +0100
|
#define ksyslog klogctl
|
||||||
@@ -277,15 +277,21 @@ _syscall3(int,ksyslog,int, type, char *,
|
#endif
|
||||||
|
|
||||||
#include <sys/utsname.h>
|
|
||||||
|
|
||||||
-#define LOG_BUFFER_SIZE 4096
|
-#define LOG_BUFFER_SIZE 4096
|
||||||
+#ifndef _PATH_KLOG
|
+#ifndef _PATH_KLOG
|
||||||
@ -107,7 +101,7 @@ Index: klogd.c
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "fortify.h"
|
#include "fortify.h"
|
||||||
@@ -299,6 +305,8 @@ static int kmsg,
|
@@ -297,6 +303,8 @@ static int kmsg,
|
||||||
|
|
||||||
static int use_syscall = 0,
|
static int use_syscall = 0,
|
||||||
one_shot = 0,
|
one_shot = 0,
|
||||||
@ -116,7 +110,7 @@ Index: klogd.c
|
|||||||
symbol_lookup = 1,
|
symbol_lookup = 1,
|
||||||
no_fork = 0; /* don't fork - don't run in daemon mode */
|
no_fork = 0; /* don't fork - don't run in daemon mode */
|
||||||
|
|
||||||
@@ -874,8 +882,7 @@ static void LogLine(char *ptr, int len)
|
@@ -872,8 +880,7 @@ static void LogLine(char *ptr, int len)
|
||||||
value = strtoul(sym_start+1, (char **) 0, 16);
|
value = strtoul(sym_start+1, (char **) 0, 16);
|
||||||
*(line-1) = '>'; /* put back delim */
|
*(line-1) = '>'; /* put back delim */
|
||||||
|
|
||||||
@ -126,7 +120,7 @@ Index: klogd.c
|
|||||||
{
|
{
|
||||||
parse_state = PARSING_TEXT;
|
parse_state = PARSING_TEXT;
|
||||||
break;
|
break;
|
||||||
@@ -916,7 +923,7 @@ static void LogLine(char *ptr, int len)
|
@@ -914,7 +921,7 @@ static void LogLine(char *ptr, int len)
|
||||||
static void LogKernelLine(void)
|
static void LogKernelLine(void)
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -135,7 +129,7 @@ Index: klogd.c
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Zero-fill the log buffer. This should cure a multitude of
|
* Zero-fill the log buffer. This should cure a multitude of
|
||||||
@@ -925,6 +932,11 @@ static void LogKernelLine(void)
|
@@ -923,6 +930,11 @@ static void LogKernelLine(void)
|
||||||
* messages into this fresh buffer.
|
* messages into this fresh buffer.
|
||||||
*/
|
*/
|
||||||
memset(log_buffer, '\0', log_buf_size);
|
memset(log_buffer, '\0', log_buf_size);
|
||||||
@ -147,7 +141,7 @@ Index: klogd.c
|
|||||||
if ( (rdcnt = ksyslog(2, log_buffer, log_buf_size-1)) < 0 )
|
if ( (rdcnt = ksyslog(2, log_buffer, log_buf_size-1)) < 0 )
|
||||||
{
|
{
|
||||||
if ( errno == EINTR )
|
if ( errno == EINTR )
|
||||||
@@ -1033,10 +1045,15 @@ int main(argc, argv)
|
@@ -1014,10 +1026,15 @@ int main(argc, argv)
|
||||||
*output = (char *) 0;
|
*output = (char *) 0;
|
||||||
|
|
||||||
#ifndef TESTING
|
#ifndef TESTING
|
||||||
@ -165,7 +159,7 @@ Index: klogd.c
|
|||||||
switch((char)ch)
|
switch((char)ch)
|
||||||
{
|
{
|
||||||
case '2': /* Print lines with symbols twice. */
|
case '2': /* Print lines with symbols twice. */
|
||||||
@@ -1067,6 +1084,14 @@ int main(argc, argv)
|
@@ -1048,6 +1065,14 @@ int main(argc, argv)
|
||||||
case 'o': /* One-shot mode. */
|
case 'o': /* One-shot mode. */
|
||||||
one_shot = 1;
|
one_shot = 1;
|
||||||
break;
|
break;
|
||||||
@ -180,7 +174,7 @@ Index: klogd.c
|
|||||||
case 'p':
|
case 'p':
|
||||||
SetParanoiaLevel(1); /* Load symbols on oops. */
|
SetParanoiaLevel(1); /* Load symbols on oops. */
|
||||||
break;
|
break;
|
||||||
@@ -1193,8 +1218,11 @@ int main(argc, argv)
|
@@ -1171,8 +1196,11 @@ int main(argc, argv)
|
||||||
if ( one_shot )
|
if ( one_shot )
|
||||||
{
|
{
|
||||||
if (symbol_lookup) {
|
if (symbol_lookup) {
|
||||||
@ -194,7 +188,7 @@ Index: klogd.c
|
|||||||
}
|
}
|
||||||
if ( (logsrc = GetKernelLogSrc()) == kernel )
|
if ( (logsrc = GetKernelLogSrc()) == kernel )
|
||||||
LogKernelLine();
|
LogKernelLine();
|
||||||
@@ -1209,8 +1237,11 @@ int main(argc, argv)
|
@@ -1187,8 +1215,11 @@ int main(argc, argv)
|
||||||
#endif
|
#endif
|
||||||
logsrc = GetKernelLogSrc();
|
logsrc = GetKernelLogSrc();
|
||||||
if (symbol_lookup) {
|
if (symbol_lookup) {
|
||||||
@ -208,10 +202,8 @@ Index: klogd.c
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* The main loop. */
|
/* The main loop. */
|
||||||
Index: pidfile.c
|
--- pidfile.c
|
||||||
===================================================================
|
+++ pidfile.c 2008-05-30 00:04:24.000000000 +0200
|
||||||
--- pidfile.c.orig 2009-11-24 18:12:56.689116000 +0100
|
|
||||||
+++ pidfile.c 2009-11-24 18:12:57.397029000 +0100
|
|
||||||
@@ -46,11 +46,11 @@
|
@@ -46,11 +46,11 @@
|
||||||
int read_pid (char *pidfile)
|
int read_pid (char *pidfile)
|
||||||
{
|
{
|
||||||
@ -252,10 +244,8 @@ Index: pidfile.c
|
|||||||
if (!fprintf(f,"%d\n", pid)) {
|
if (!fprintf(f,"%d\n", pid)) {
|
||||||
fprintf(stderr, "Can't write pid , %s.\n", strerror(errno));
|
fprintf(stderr, "Can't write pid , %s.\n", strerror(errno));
|
||||||
close(fd);
|
close(fd);
|
||||||
Index: resolve.c
|
--- resolve.c
|
||||||
===================================================================
|
+++ resolve.c 2006-02-08 17:29:50.000000000 +0100
|
||||||
--- resolve.c.orig 2009-11-24 18:12:53.920294000 +0100
|
|
||||||
+++ resolve.c 2009-11-24 18:12:57.400034000 +0100
|
|
||||||
@@ -13,6 +13,7 @@
|
@@ -13,6 +13,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@ -264,7 +254,7 @@ Index: resolve.c
|
|||||||
|
|
||||||
#if defined(__GLIBC__)
|
#if defined(__GLIBC__)
|
||||||
#define dprintf mydprintf
|
#define dprintf mydprintf
|
||||||
@@ -208,7 +209,7 @@ do_query(int fd, int family, const char
|
@@ -208,7 +209,7 @@ do_query(int fd, int family, const char
|
||||||
{
|
{
|
||||||
struct sockaddr_storage ss;
|
struct sockaddr_storage ss;
|
||||||
struct addrinfo hints, *res;
|
struct addrinfo hints, *res;
|
||||||
@ -273,7 +263,7 @@ Index: resolve.c
|
|||||||
|
|
||||||
memset(&hints, 0, sizeof(hints));
|
memset(&hints, 0, sizeof(hints));
|
||||||
hints.ai_socktype = SOCK_DGRAM;
|
hints.ai_socktype = SOCK_DGRAM;
|
||||||
@@ -244,6 +245,20 @@ do_query(int fd, int family, const char
|
@@ -244,6 +245,20 @@ do_query(int fd, int family, const char
|
||||||
} else {
|
} else {
|
||||||
memcpy(&ss, res->ai_addr, res->ai_addrlen);
|
memcpy(&ss, res->ai_addr, res->ai_addrlen);
|
||||||
}
|
}
|
||||||
@ -296,10 +286,8 @@ Index: resolve.c
|
|||||||
+ dprintf("failed to write: %s\n", strerror(errno));
|
+ dprintf("failed to write: %s\n", strerror(errno));
|
||||||
+ exit(1);
|
+ exit(1);
|
||||||
}
|
}
|
||||||
Index: sample-s390.conf
|
--- sample-s390.conf
|
||||||
===================================================================
|
+++ sample-s390.conf 2006-02-08 17:29:50.000000000 +0100
|
||||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
||||||
+++ sample-s390.conf 2009-11-24 18:12:57.417029000 +0100
|
|
||||||
@@ -0,0 +1,60 @@
|
@@ -0,0 +1,60 @@
|
||||||
+# /etc/syslog.conf - Configuration file for syslogd(8)
|
+# /etc/syslog.conf - Configuration file for syslogd(8)
|
||||||
+#
|
+#
|
||||||
@ -361,10 +349,8 @@ Index: sample-s390.conf
|
|||||||
+local2,local3.* -/var/log/localmessages
|
+local2,local3.* -/var/log/localmessages
|
||||||
+local4,local5.* -/var/log/localmessages
|
+local4,local5.* -/var/log/localmessages
|
||||||
+local6,local7.* -/var/log/localmessages
|
+local6,local7.* -/var/log/localmessages
|
||||||
Index: sample.conf
|
--- sample.conf
|
||||||
===================================================================
|
+++ sample.conf 2006-02-08 17:29:50.000000000 +0100
|
||||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
||||||
+++ sample.conf 2009-11-24 18:12:57.420029000 +0100
|
|
||||||
@@ -0,0 +1,60 @@
|
@@ -0,0 +1,60 @@
|
||||||
+# /etc/syslog.conf - Configuration file for syslogd(8)
|
+# /etc/syslog.conf - Configuration file for syslogd(8)
|
||||||
+#
|
+#
|
||||||
@ -426,10 +412,8 @@ Index: sample.conf
|
|||||||
+local2,local3.* -/var/log/localmessages
|
+local2,local3.* -/var/log/localmessages
|
||||||
+local4,local5.* -/var/log/localmessages
|
+local4,local5.* -/var/log/localmessages
|
||||||
+local6,local7.* -/var/log/localmessages
|
+local6,local7.* -/var/log/localmessages
|
||||||
Index: syslog.c
|
--- syslog.c
|
||||||
===================================================================
|
+++ syslog.c 2006-02-08 17:29:50.000000000 +0100
|
||||||
--- syslog.c.orig 2009-11-24 18:12:56.940031000 +0100
|
|
||||||
+++ syslog.c 2009-11-24 18:12:57.423029000 +0100
|
|
||||||
@@ -70,7 +70,13 @@ static char sccsid[] = "@(#)syslog.c 5.2
|
@@ -70,7 +70,13 @@ static char sccsid[] = "@(#)syslog.c 5.2
|
||||||
#include <paths.h>
|
#include <paths.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -445,10 +429,8 @@ Index: syslog.c
|
|||||||
|
|
||||||
#include "fortify.h"
|
#include "fortify.h"
|
||||||
|
|
||||||
Index: syslogd.c
|
--- syslogd.c
|
||||||
===================================================================
|
+++ syslogd.c 2008-05-28 12:14:25.000000000 +0200
|
||||||
--- syslogd.c.orig 2009-11-24 18:12:56.694123000 +0100
|
|
||||||
+++ syslogd.c 2009-11-24 18:12:57.428040000 +0100
|
|
||||||
@@ -466,6 +466,7 @@ static char sccsid[] __attribute__ ((un
|
@@ -466,6 +466,7 @@ static char sccsid[] __attribute__ ((un
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
Index: CHANGES
|
--- CHANGES Sun Mar 11 20:35:51 2001
|
||||||
===================================================================
|
+++ CHANGES Fri Aug 2 11:28:10 2002
|
||||||
--- CHANGES.orig 2001-03-11 20:35:51.000000000 +0100
|
|
||||||
+++ CHANGES 2009-11-24 18:12:53.132378000 +0100
|
|
||||||
@@ -1,3 +1,7 @@
|
@@ -1,3 +1,7 @@
|
||||||
+Version 1.4.1-usagi (2001/03/21)
|
+Version 1.4.1-usagi (2001/03/21)
|
||||||
+ - syslogd IPv6 support
|
+ - syslogd IPv6 support
|
||||||
@ -10,11 +8,9 @@ Index: CHANGES
|
|||||||
Version 1.4.1
|
Version 1.4.1
|
||||||
|
|
||||||
. klogd will set the console log level only if `-c' is given on the
|
. klogd will set the console log level only if `-c' is given on the
|
||||||
Index: Makefile
|
--- Makefile Fri Aug 2 12:11:24 2002
|
||||||
===================================================================
|
+++ Makefile Fri Aug 2 11:58:42 2002
|
||||||
--- Makefile.orig 1998-10-12 22:25:15.000000000 +0200
|
@@ -6,7 +6,7 @@
|
||||||
+++ Makefile 2009-11-24 18:12:53.137377000 +0100
|
|
||||||
@@ -3,7 +3,7 @@
|
|
||||||
CC= gcc
|
CC= gcc
|
||||||
#CFLAGS= -g -DSYSV -Wall
|
#CFLAGS= -g -DSYSV -Wall
|
||||||
#LDFLAGS= -g
|
#LDFLAGS= -g
|
||||||
@ -23,11 +19,9 @@ Index: Makefile
|
|||||||
LDFLAGS= -s
|
LDFLAGS= -s
|
||||||
|
|
||||||
# Look where your install program is.
|
# Look where your install program is.
|
||||||
Index: syslogd.c
|
--- syslogd.c Fri Aug 2 12:11:25 2002
|
||||||
===================================================================
|
+++ syslogd.c Fri Aug 2 12:00:16 2002
|
||||||
--- syslogd.c.orig 2009-11-24 18:12:52.661468000 +0100
|
@@ -604,6 +604,7 @@
|
||||||
+++ syslogd.c 2009-11-24 18:12:53.143385000 +0100
|
|
||||||
@@ -599,6 +599,7 @@ int funix[MAXFUNIX] = { -1, };
|
|
||||||
* This table contains plain text for h_errno errors used by the
|
* This table contains plain text for h_errno errors used by the
|
||||||
* net subsystem.
|
* net subsystem.
|
||||||
*/
|
*/
|
||||||
@ -35,7 +29,7 @@ Index: syslogd.c
|
|||||||
const char *sys_h_errlist[] = {
|
const char *sys_h_errlist[] = {
|
||||||
"No problem", /* NETDB_SUCCESS */
|
"No problem", /* NETDB_SUCCESS */
|
||||||
"Authoritative answer: host not found", /* HOST_NOT_FOUND */
|
"Authoritative answer: host not found", /* HOST_NOT_FOUND */
|
||||||
@@ -607,6 +608,7 @@ const char *sys_h_errlist[] = {
|
@@ -612,6 +613,7 @@
|
||||||
"Valid name, no data record of requested type", /* NO_DATA */
|
"Valid name, no data record of requested type", /* NO_DATA */
|
||||||
"no address, look for MX record" /* NO_ADDRESS */
|
"no address, look for MX record" /* NO_ADDRESS */
|
||||||
};
|
};
|
||||||
@ -43,7 +37,7 @@ Index: syslogd.c
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* This structure represents the files that will have log
|
* This structure represents the files that will have log
|
||||||
@@ -625,7 +627,18 @@ struct filed {
|
@@ -630,7 +632,18 @@
|
||||||
char f_uname[MAXUNAMES][UNAMESZ+1];
|
char f_uname[MAXUNAMES][UNAMESZ+1];
|
||||||
struct {
|
struct {
|
||||||
char f_hname[MAXHOSTNAMELEN+1];
|
char f_hname[MAXHOSTNAMELEN+1];
|
||||||
@ -62,7 +56,7 @@ Index: syslogd.c
|
|||||||
} f_forw; /* forwarding address */
|
} f_forw; /* forwarding address */
|
||||||
char f_fname[MAXFNAME];
|
char f_fname[MAXFNAME];
|
||||||
} f_un;
|
} f_un;
|
||||||
@@ -732,7 +745,11 @@ char LocalHostName[MAXHOSTNAMELEN+1]; /*
|
@@ -737,7 +750,11 @@
|
||||||
char *LocalDomain; /* our local domain name */
|
char *LocalDomain; /* our local domain name */
|
||||||
int InetInuse = 0; /* non-zero if INET sockets are being used */
|
int InetInuse = 0; /* non-zero if INET sockets are being used */
|
||||||
int finet = -1; /* Internet datagram socket */
|
int finet = -1; /* Internet datagram socket */
|
||||||
@ -74,7 +68,7 @@ Index: syslogd.c
|
|||||||
int Initialized = 0; /* set when we have initialized ourselves */
|
int Initialized = 0; /* set when we have initialized ourselves */
|
||||||
int MarkInterval = 20 * 60; /* interval between marks in seconds */
|
int MarkInterval = 20 * 60; /* interval between marks in seconds */
|
||||||
int MarkSeq = 0; /* mark sequence number */
|
int MarkSeq = 0; /* mark sequence number */
|
||||||
@@ -759,10 +776,10 @@ void fprintlog(register struct filed *f,
|
@@ -764,10 +781,10 @@
|
||||||
void endtty();
|
void endtty();
|
||||||
void wallmsg(register struct filed *f, struct iovec *iov);
|
void wallmsg(register struct filed *f, struct iovec *iov);
|
||||||
void reapchild();
|
void reapchild();
|
||||||
@ -87,7 +81,7 @@ Index: syslogd.c
|
|||||||
void die(int sig);
|
void die(int sig);
|
||||||
#ifndef TESTING
|
#ifndef TESTING
|
||||||
void doexit(int sig);
|
void doexit(int sig);
|
||||||
@@ -782,6 +799,10 @@ static int create_unix_socket(const char
|
@@ -787,6 +804,10 @@
|
||||||
#endif
|
#endif
|
||||||
#ifdef SYSLOG_INET
|
#ifdef SYSLOG_INET
|
||||||
static int create_inet_socket();
|
static int create_inet_socket();
|
||||||
@ -98,7 +92,7 @@ Index: syslogd.c
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(argc, argv)
|
int main(argc, argv)
|
||||||
@@ -816,7 +837,12 @@ int main(argc, argv)
|
@@ -821,7 +842,12 @@
|
||||||
#ifndef TESTING
|
#ifndef TESTING
|
||||||
int fd;
|
int fd;
|
||||||
#ifdef SYSLOG_INET
|
#ifdef SYSLOG_INET
|
||||||
@ -111,7 +105,7 @@ Index: syslogd.c
|
|||||||
char *from;
|
char *from;
|
||||||
#endif
|
#endif
|
||||||
pid_t ppid = getpid();
|
pid_t ppid = getpid();
|
||||||
@@ -1137,11 +1163,21 @@ int main(argc, argv)
|
@@ -1142,11 +1168,21 @@
|
||||||
memset(line, '\0', sizeof(line));
|
memset(line, '\0', sizeof(line));
|
||||||
i = recvfrom(finet, line, MAXLINE - 2, 0, \
|
i = recvfrom(finet, line, MAXLINE - 2, 0, \
|
||||||
(struct sockaddr *) &frominet, &len);
|
(struct sockaddr *) &frominet, &len);
|
||||||
@ -134,7 +128,7 @@ Index: syslogd.c
|
|||||||
/*
|
/*
|
||||||
* Here we could check if the host is permitted
|
* Here we could check if the host is permitted
|
||||||
* to send us syslog messages. We just have to
|
* to send us syslog messages. We just have to
|
||||||
@@ -1227,17 +1263,50 @@ static int create_unix_socket(const char
|
@@ -1233,17 +1269,50 @@
|
||||||
static int create_inet_socket()
|
static int create_inet_socket()
|
||||||
{
|
{
|
||||||
int fd, on = 1;
|
int fd, on = 1;
|
||||||
@ -185,7 +179,7 @@ Index: syslogd.c
|
|||||||
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, \
|
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, \
|
||||||
(char *) &on, sizeof(on)) < 0 ) {
|
(char *) &on, sizeof(on)) < 0 ) {
|
||||||
logerror("setsockopt(REUSEADDR), suspending inet");
|
logerror("setsockopt(REUSEADDR), suspending inet");
|
||||||
@@ -1253,13 +1322,77 @@ static int create_inet_socket()
|
@@ -1259,13 +1328,77 @@
|
||||||
close(fd);
|
close(fd);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -263,7 +257,7 @@ Index: syslogd.c
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
char **
|
char **
|
||||||
@@ -1679,8 +1812,12 @@ void fprintlog(f, from, flags, msg)
|
@@ -1687,8 +1820,12 @@
|
||||||
register int l;
|
register int l;
|
||||||
char line[MAXLINE + 1];
|
char line[MAXLINE + 1];
|
||||||
time_t fwd_suspend;
|
time_t fwd_suspend;
|
||||||
@ -276,7 +270,7 @@ Index: syslogd.c
|
|||||||
|
|
||||||
dprintf("Called fprintlog, ");
|
dprintf("Called fprintlog, ");
|
||||||
|
|
||||||
@@ -1734,22 +1871,27 @@ void fprintlog(f, from, flags, msg)
|
@@ -1742,22 +1879,27 @@
|
||||||
fwd_suspend);
|
fwd_suspend);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -306,7 +300,7 @@ Index: syslogd.c
|
|||||||
dprintf("Retries: %d\n", f->f_prevcount);
|
dprintf("Retries: %d\n", f->f_prevcount);
|
||||||
if ( --f->f_prevcount < 0 ) {
|
if ( --f->f_prevcount < 0 ) {
|
||||||
dprintf("Giving up.\n");
|
dprintf("Giving up.\n");
|
||||||
@@ -1760,7 +1902,9 @@ void fprintlog(f, from, flags, msg)
|
@@ -1768,7 +1910,9 @@
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
dprintf("%s found, resuming.\n", f->f_un.f_forw.f_hname);
|
dprintf("%s found, resuming.\n", f->f_un.f_forw.f_hname);
|
||||||
@ -316,7 +310,7 @@ Index: syslogd.c
|
|||||||
f->f_prevcount = 0;
|
f->f_prevcount = 0;
|
||||||
f->f_type = F_FORW;
|
f->f_type = F_FORW;
|
||||||
goto f_forw;
|
goto f_forw;
|
||||||
@@ -1783,27 +1927,31 @@ void fprintlog(f, from, flags, msg)
|
@@ -1791,27 +1935,31 @@
|
||||||
dprintf("Not sending message to remote.\n");
|
dprintf("Not sending message to remote.\n");
|
||||||
else {
|
else {
|
||||||
f->f_time = now;
|
f->f_time = now;
|
||||||
@ -356,7 +350,7 @@ Index: syslogd.c
|
|||||||
e, strerror(e));
|
e, strerror(e));
|
||||||
f->f_type = F_FORW_SUSP;
|
f->f_type = F_FORW_SUSP;
|
||||||
errno = e;
|
errno = e;
|
||||||
@@ -2025,28 +2173,53 @@ void reapchild()
|
@@ -2035,28 +2183,53 @@
|
||||||
/*
|
/*
|
||||||
* Return a printable representation of a host address.
|
* Return a printable representation of a host address.
|
||||||
*/
|
*/
|
||||||
@ -418,7 +412,7 @@ Index: syslogd.c
|
|||||||
if (isupper(*p))
|
if (isupper(*p))
|
||||||
*p = tolower(*p);
|
*p = tolower(*p);
|
||||||
|
|
||||||
@@ -2054,17 +2227,17 @@ const char *cvthname(f)
|
@@ -2064,17 +2237,17 @@
|
||||||
* Notice that the string still contains the fqdn, but your
|
* Notice that the string still contains the fqdn, but your
|
||||||
* hostname and domain are separated by a '\0'.
|
* hostname and domain are separated by a '\0'.
|
||||||
*/
|
*/
|
||||||
@ -439,7 +433,7 @@ Index: syslogd.c
|
|||||||
}
|
}
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
@@ -2072,9 +2245,9 @@ const char *cvthname(f)
|
@@ -2082,9 +2255,9 @@
|
||||||
if (LocalHosts) {
|
if (LocalHosts) {
|
||||||
count=0;
|
count=0;
|
||||||
while (LocalHosts[count]) {
|
while (LocalHosts[count]) {
|
||||||
@ -451,7 +445,7 @@ Index: syslogd.c
|
|||||||
}
|
}
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
@@ -2082,7 +2255,7 @@ const char *cvthname(f)
|
@@ -2092,7 +2265,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -460,7 +454,7 @@ Index: syslogd.c
|
|||||||
}
|
}
|
||||||
|
|
||||||
void domark()
|
void domark()
|
||||||
@@ -2132,7 +2305,7 @@ void debug_switch()
|
@@ -2142,7 +2315,7 @@
|
||||||
* Print syslogd errors some place.
|
* Print syslogd errors some place.
|
||||||
*/
|
*/
|
||||||
void logerror(type)
|
void logerror(type)
|
||||||
@ -469,7 +463,7 @@ Index: syslogd.c
|
|||||||
{
|
{
|
||||||
char buf[100];
|
char buf[100];
|
||||||
|
|
||||||
@@ -2226,6 +2399,7 @@ void init()
|
@@ -2236,6 +2409,7 @@
|
||||||
#else
|
#else
|
||||||
char cline[BUFSIZ];
|
char cline[BUFSIZ];
|
||||||
#endif
|
#endif
|
||||||
@ -477,7 +471,7 @@ Index: syslogd.c
|
|||||||
struct servent *sp;
|
struct servent *sp;
|
||||||
|
|
||||||
sp = getservbyname("syslog", "udp");
|
sp = getservbyname("syslog", "udp");
|
||||||
@@ -2236,6 +2410,7 @@ void init()
|
@@ -2246,6 +2420,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LogPort = sp->s_port;
|
LogPort = sp->s_port;
|
||||||
@ -485,7 +479,7 @@ Index: syslogd.c
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Close all open log files and free log descriptor array.
|
* Close all open log files and free log descriptor array.
|
||||||
@@ -2384,6 +2559,10 @@ void init()
|
@@ -2394,6 +2569,10 @@
|
||||||
InetInuse = 0;
|
InetInuse = 0;
|
||||||
}
|
}
|
||||||
inetm = finet;
|
inetm = finet;
|
||||||
@ -496,7 +490,7 @@ Index: syslogd.c
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
Initialized = 1;
|
Initialized = 1;
|
||||||
@@ -2471,7 +2650,7 @@ void cfline(line, f)
|
@@ -2481,7 +2660,7 @@
|
||||||
int singlpri = 0;
|
int singlpri = 0;
|
||||||
int ignorepri = 0;
|
int ignorepri = 0;
|
||||||
int syncfile;
|
int syncfile;
|
||||||
@ -505,7 +499,7 @@ Index: syslogd.c
|
|||||||
struct hostent *hp;
|
struct hostent *hp;
|
||||||
#endif
|
#endif
|
||||||
char buf[MAXLINE];
|
char buf[MAXLINE];
|
||||||
@@ -2630,6 +2809,9 @@ void cfline(line, f)
|
@@ -2640,6 +2819,9 @@
|
||||||
#ifdef SYSLOG_INET
|
#ifdef SYSLOG_INET
|
||||||
(void) strcpy(f->f_un.f_forw.f_hname, ++p);
|
(void) strcpy(f->f_un.f_forw.f_hname, ++p);
|
||||||
dprintf("forwarding host: %s\n", p); /*ASP*/
|
dprintf("forwarding host: %s\n", p); /*ASP*/
|
||||||
@ -515,7 +509,7 @@ Index: syslogd.c
|
|||||||
if ( (hp = gethostbyname(p)) == NULL ) {
|
if ( (hp = gethostbyname(p)) == NULL ) {
|
||||||
f->f_type = F_FORW_UNKN;
|
f->f_type = F_FORW_UNKN;
|
||||||
f->f_prevcount = INET_RETRY_MAX;
|
f->f_prevcount = INET_RETRY_MAX;
|
||||||
@@ -2644,6 +2826,7 @@ void cfline(line, f)
|
@@ -2654,6 +2836,7 @@
|
||||||
f->f_un.f_forw.f_addr.sin_port = LogPort;
|
f->f_un.f_forw.f_addr.sin_port = LogPort;
|
||||||
if ( f->f_type == F_FORW )
|
if ( f->f_type == F_FORW )
|
||||||
memcpy((char *) &f->f_un.f_forw.f_addr.sin_addr, hp->h_addr, hp->h_length);
|
memcpy((char *) &f->f_un.f_forw.f_addr.sin_addr, hp->h_addr, hp->h_length);
|
||||||
@ -523,3 +517,4 @@ Index: syslogd.c
|
|||||||
/*
|
/*
|
||||||
* Otherwise the host might be unknown due to an
|
* Otherwise the host might be unknown due to an
|
||||||
* inaccessible nameserver (perhaps on the same
|
* inaccessible nameserver (perhaps on the same
|
||||||
|
|
||||||
|
@ -1,13 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Tue Nov 24 17:16:07 UTC 2009 - crrodriguez@opensuse.org
|
|
||||||
|
|
||||||
- refresh patches again
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Nov 3 19:09:47 UTC 2009 - coolo@novell.com
|
|
||||||
|
|
||||||
- updated patches to apply with fuzz=0
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 9 21:47:47 CEST 2009 - mt@suse.de
|
Wed Sep 9 21:47:47 CEST 2009 - mt@suse.de
|
||||||
|
|
||||||
|
16
syslogd.spec
16
syslogd.spec
@ -111,21 +111,21 @@ Authors:
|
|||||||
%patch5 -p0 -b .ipv6
|
%patch5 -p0 -b .ipv6
|
||||||
%patch6 -p0 -b .klogd24
|
%patch6 -p0 -b .klogd24
|
||||||
%patch7 -p0 -b .large
|
%patch7 -p0 -b .large
|
||||||
%patch8 -p0 -b .dns
|
%patch8 -p1 -b .dns
|
||||||
%patch9 -p0 -b .reopen
|
%patch9 -p0 -b .reopen
|
||||||
%patch10 -p0 -b .sobsd
|
%patch10 -p0 -b .sobsd
|
||||||
%patch11 -p0 -b .owlcr
|
%patch11 -p1 -b .owlcr
|
||||||
%patch12 -p0 -b .klsize
|
%patch12 -p1 -b .klsize
|
||||||
%patch13 -p0 -b .usock
|
%patch13 -p0 -b .usock
|
||||||
%patch14 -p0 -b .shprio
|
%patch14 -p0 -b .shprio
|
||||||
%patch15 -p0 -b .presperc
|
%patch15 -p1 -b .presperc
|
||||||
%patch16 -p0 -b .utf8
|
%patch16 -p1 -b .utf8
|
||||||
%patch17 -p0 -b .ksym
|
%patch17 -p1 -b .ksym
|
||||||
%patch18 -p0 -b .sleep
|
%patch18 -p1 -b .sleep
|
||||||
%patch19 -p0 -b .signal
|
%patch19 -p0 -b .signal
|
||||||
%patch20 -p0 -b .clear
|
%patch20 -p0 -b .clear
|
||||||
%patch21 -p0 -b .nofortify
|
%patch21 -p0 -b .nofortify
|
||||||
%patch22 -p0 -b .sysmap
|
%patch22 -p1 -b .sysmap
|
||||||
%patch0 -p0
|
%patch0 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user