Remove unused variable.
Add allow/deny rules support.

- pfwd.c: add allow/deny rules support.
- pfwd.c: fix close sockets on error.
Some fixes.

- common.h: remove gio.h header.
- daemon.c: fix user/group swap.
- daemon.c: remove lock file and use O_EXCL on the PID file.
- log.c: add stdarg.h header.
- pfwd.c: remove logger argument for LOG_ macros.
- pfwd.c: add support to user configuration file.
- pfwd.c: check main/redirection groups existence and creation order.
- pfwd.c: fix daemon exec by adding a daemon flag to known current
execution type.
- pfwd.c: fix daemonize by removing lock_file.
- Makefile.am: fix datadir/docdir/localdir.
- configure.in: add VERSION support.
- configure.in: fix datadir/docdir/localdir.
- Makefile.am: fix datadir/docdir/localdir.
- add init.d scripts.
- add autogen.sh script.

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
Add unix socket support.

- pfwd.c: allow forwarding independently of the socket type.
- pfwd.c: add UNIX socket support.
- pfwd.c: externalize functions to start/stop port forwarders.
- pfwd.c: add watchers lists for cleaning memory.
- pfwd.c: fix memory leaks in settings loading.
- log_console.c: fix one memory leak.
- log_file.c: fix one memory leak.
- log_syslog.c: fix one memory leak.

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
Fix memory leaks and add extra checks.

- pfwd.h: default backlog value to 100.
- pfwd.c: force minimum socket buffer size to 1024 bytes.
- pfwd.c: return error with invalid listen backlog value.
- pfwd.c: use GError on all glib functions where it is possible.
- pfwd.c: fix to disable listen port / forward port checks with AF_UNIX
sockets.
- pfwd.c: fix stop_pfwd() to stop all watchers.
- pfwd.c: update logger/handlers with new API and fix handler memory
leak.
- log.c: redesign log handler functions.
- log_console.c: update API.
- log_file.c: update API.
- log_syslog.c: update API.
Add security options for unix sockets.

- pfwd.c: add listen owner / group / mode options support to secure
UNIX sockets.
- pfwd.c: fix to allow daemon execution without setting user and group
options.
- pfwd.c: fix defaults values for listen backlog.
- pfwd.c: fix for custom config file and add file check before options
loading.
- pfwd.c: fix GError by setting all pointers to NULL after freeing
memory.

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
Fix read flag check of user config file.

- pfwd.c: fix read flag check of user config file.
- pfwd.c: some cosmetics fixes.
- README: fix URL.

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
Abort execution if one redirector cannot be started.

- pfwd.c: abort execution if one redirector can be started.
- pfwd.c: fix static functions.

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
Add forwarder support in command line execution.

- pfwd.c: add forwarder support in client execution.
- pfwd.c: fix SIGHUP to work only in daemon mode.
- pfwd.c: disable configuration file loading in client execution.
- pfwd.c: force custom config file to be absolute for daemon mode.
- pfwd.c: add listen/forward address format errors detection.
- pfwd.c: add uid/gid support for listen owner/group options.
- pfwd.c: update logger macros to check logger existence.
- pfwd.c: remove unused variables.
- pfwd.c: fix memory leaks in init_pfwds().
- pfwd.c: fix verbose output in init_logger().
- pfwd.c: fix logger_set_options() return values.
- pfwd.c: fix help text output.
- daemon.c: remove unused variable.
- configure.in: update file.

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>