pdbtool: fix a double increment within a loop

When displaying debug-csv information, the loop variable was not
only incremented in the for statement, but also within the loop, which
caused an index mismatch when iterating over the dbg_info array

Signed-off-by: Balint Kovacs <blint@blint.hu>
ivykis: updated to 0.30.5
resolve_sockaddr: fixed unsafe use of non-reentrant APIs to resolve IP addresses to names

As it seems the use of the DNS cache hid the fact that we're not thread
safe when resolving IPs to DNS names. This patch attempts to use
getnameinfo() API if available that is thread safe and protects
all other paths with a mutex.

Reported-By: Brian Kroth <bpkroth@gmail.com>
Tested-By: Gergely Nagy <algernon@balabit.hu>
Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
mainloop: #include <iv_event.h>, as we're using it

Reported-by: Ben Lentz <blentz@cswg.com>
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
cfg-lexer: Support systems without GLOB_NOMAGIC

GLOB_NOMAGIC is a GNU-ism, and not present on all systems syslog-ng
supports, so for those system, we need a workaround. We can't use
GLOB_NOCHECK, as that would make us have widly different behaviour in
some cases (when there really is a pattern in the @include'd filename).

So, on platforms that do not have GLOB_NOMAGIC, we implement the same
behaviour on our own: if glob() failed with GLOB_NOMATCH, we check if
the filename is a pattern, and if not, add the pattern to the include
list as-is, otherwise silently ignore it.

This means that @include "/etc/syslog-ng/conf.d/*.conf" will work on
these platforms the same way as it does on GNU-enabled ones.

Reported-by: Ben Lentz <blentz@cswg.com>
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
afsocket: Force syslog() destination to use IPv4

The syslog() source already enforces IPv4, the destination should be
doing the same.

Reported-by: Jan Schaumann <jschauma@netmeister.org>
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
[plugin.c] on AIX 5.2 the G_MODULE_SUFFIX contains "so" and the available modules will be empty

correction is that overwrite this define to "a"

Signed-off-by: Juhasz Viktor <jviktor@balabit.hu>
on AIX 5.2 the G_MODULE_SUFFIX contains "so" and the available modules will be empty

correction is that overwrite this define to "a"

Signed-off-by: Juhasz Viktor <jviktor@balabit.hu>
Merge branch 'upstream/mirror/3.3' into merge-queue/3.4

Signed-off-by: Gergely Nagy <algernon@balabit.hu>