Minor whitespace fix
Bug #103: Move files installed in /etc/ to /etc/tinyproxy/
Make .xz compressed dist targets too
build: Prepend to LDFLAGS instead of replacing its contents
Update authors
[BB#112] build: fix build with autoconf >= 2.69

Use AC_CONFIG_HEADERS instead of obsolete AM_CONFIG_HEADER.

Signed-off-by: Michael Adam <obnox@samba.org>
[BB#115] Drop supplementary groups

Supplementary groups are inherited from the calling process. Drop all
supplementary groups if the "Group" configuration directive is set to
change to a different user. Otherwise the process may have more rights
than expected.

Reviewed-by: Michael Adam <obnox@samba.org>
log: remove extra newline characters in log messages.

Signed-off-by: Michael Adam <obnox@samba.org>
[BB#109] Fix crash (infinite loop) when writing to log file fails.

Fall back to syslog logging in that case.

Signed-off-by: Michael Adam <obnox@samba.org>
sock/child: remove global variable addrlen.

This changes listen_sock() to not return the
addrlen of the used address from getaddrinfo call
to the caller, stored in global addrlen in child.c.

This was only used to be able to allocate enough space for the
arguments to the later accept call depending on whether
IPv4 or IPv6 is used.

This removes the need to pass this info by always allocating
sizeof(struct sockaddr_storage) instead, which is enough
to carry both sockaddr_in and sockaddr_in6.

Signed-off-by: Michael Adam <obnox@samba.org>
sock: add addr argument to listen_sock()

instead of using config.ipAddr internally.
This is in preparation to make it possible
to call it for multiple addresses.

Signed-off-by: Michael Adam <obnox@samba.org>
child: add addr argument to child_listening_sock().

Signed-off-by: Michael Adam <obnox@samba.org>
child: use a list of listen_fds instead of one single listenfd.

This prepares listenting on multiple sockets, which will be ussed to
fix listening on the wildcard (listen on both ipv6 and ipv4) and
help add the support for multiple Listen statements in the config

Signed-off-by: Michael Adam <obnox@samba.org>
sock: move listen() into the getaddrinfo result loop in listen_sock()

This also reverses the exit logic of the loop.
It prepares listening on multiple addresses.

Signed-off-by: Michael Adam <obnox@samba.org>
sock: in listen_sock(), add debug message when socket() call failed.

Signed-off-by: Michael Adam <obnox@samba.org>
sock: in listen_sock(), detect and log failure to call setsockopt()

Signed-off-by: Michael Adam <obnox@samba.org>
sock: in listen_sock(), add a log message for when bind() has failed

Signed-off-by: Michael Adam <obnox@samba.org>
sock: log each result of getaddrinfo() in listen_sock()

Signed-off-by: Michael Adam <obnox@samba.org>
sock: in listen_sock(), move variable for setsockopt() into scope

Signed-off-by: Michael Adam <obnox@samba.org>
sock: factor listening on one socket out of the gai-result-loop in listen_sock()

for clarity of the code

Signed-off-by: Michael Adam <obnox@samba.org>