[syslog-ng]syslog-ng 1.5.20, unix-dgram source on BSD broken
Balazs Scheidler
bazsi@balabit.hu
Fri, 23 Aug 2002 14:04:52 +0200
... and this patch fixes it:
diff -u -r1.23 afunix.c
--- afunix.c 21 Aug 2002 14:03:50 -0000 1.23
+++ afunix.c 23 Aug 2002 12:02:56 -0000
@@ -51,7 +51,7 @@
CAST(afsocket_source_connection, self, c);
io_read(self->client,
- make_log_reader(0, NULL, cfg->log_msg_size, 0, cfg->check_hostname ? LF_CHECK_HOSTNAME : 0, c),
+ make_log_reader(!!(self->owner->flags & AFSOCKET_DGRAM), NULL, cfg->log_msg_size, 0, cfg->check_hostname ? LF_CHECK_HOSTNAME : 0, c),
make_afsocket_source_close_callback(self));
return ST_OK | ST_GOON;
--
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1