Commit Graph

22 Commits

Author SHA1 Message Date
Sam Hocevar
82e731b797 Improve type safety of many function calls. 2016-01-11 03:09:05 +01:00
Sam Hocevar
88e3fff7a4 Reduce the number of global variables. 2016-01-11 03:09:05 +01:00
Sam Hocevar
6e862b6306 Fix uninitialised socket handling structures.
This bug would cause crashes simply upon receiving SIGHUP.
2016-01-11 03:09:04 +01:00
Sam Hocevar
80db9e344e Log accepted connections, not only denied ones.
Patch courtesy of Flavio Stanchina, through the Debian bug tracker
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628061).
2016-01-11 03:09:04 +01:00
Sam Hocevar
24f6bc5548 Update README file with more modern information. 2016-01-11 03:09:04 +01:00
Sam Hocevar
568da70b3b Use socklen_t type for accept() if available. 2016-01-11 03:09:04 +01:00
Sam Hocevar
30d2573264 Rename log() to logEvent() due to builtin redefinition. 2016-01-11 03:09:04 +01:00
Sam Hocevar
b46ea689b9 Remove trailing spaces and mismatched tabs/spaces. 2016-01-11 03:09:04 +01:00
Sam Hocevar
e39369a364 Use strdup() instead of strlen()+malloc()+strcpy(). 2016-01-11 03:09:04 +01:00
Sam Hocevar
21af463eae Log DNS errors.
This patch is imported from the rinetd Debian package.
2016-01-11 03:09:04 +01:00
Sam Hocevar
90d1655c74 Various bug fixes imported from the Debian package. 2016-01-11 03:09:04 +01:00
Sam Hocevar
b6ded86fe5 Fix context line number in error reporting.
This patch is imported from the rinetd Debian package.
2016-01-11 03:09:04 +01:00
Sam Hocevar
7330c19177 Properly close the configuration file.
This patch is imported from the rinetd Debian package.
2016-01-11 03:09:04 +01:00
Sam Hocevar
0f574db5b4 Use syslog() instead of fprintf(stderr) if available.
This patch is imported from the rinetd Debian package.
2016-01-11 03:09:04 +01:00
Sam Hocevar
35e4ac0497 Use sigaction() instead of signal() when available.
This patch is imported from the rinetd Debian package.
2016-01-11 03:09:04 +01:00
Sam Hocevar
acb00a89f9 Use autoconf and automake and remove MSVC projects.
This patch is imported from the rinetd Debian package.
2016-01-11 03:09:04 +01:00
Sam Hocevar
39e4d7a0e8 Add a -f flag to run in the foreground.
This patch is imported from the rinetd Debian package.
2016-01-10 21:31:08 +01:00
Sam Hocevar
13f2f7f854 Fix deprecated use of text literals as char*.
This patch is imported from the rinetd Debian package.
2016-01-10 21:22:36 +01:00
Sam Hocevar
1c95abb27d Import old rinetd 0.62.
Taken from the Debian archive:
  http://archive.debian.org/debian/pool/main/r/rinetd/
2016-01-10 20:55:51 +01:00
Sam Hocevar
e6552ce4fa Import old rinetd 0.61.
Taken from the Debian archive:
  http://archive.debian.org/debian-security/pool/updates/main/r/rinetd/
2016-01-10 20:50:29 +01:00
Sam Hocevar
d46367a44a Import old rinetd 0.52.
Taken from the Debian archive:
  http://archive.debian.org/debian-security/pool/updates/main/r/rinetd/
2016-01-10 20:46:19 +01:00
Sam Hocevar
a359399bb2 Import old rinetd 0.41.
Taken from the Debian archive:
  http://archive.debian.org/debian/dists/Debian-2.0/main/source/net/
2016-01-10 20:43:31 +01:00