[ANNOUNCE] WAPD Plugin 0.9

Message ID 200801220044.56496.ville.skytta@iki.fi
State New
Headers

Commit Message

Ville Skyttä Jan. 21, 2008, 10:44 p.m. UTC
  On Monday 21 January 2008, Thomas Heiligenmann wrote:
> A new version of the plugin is available:
>
> Download: http://www.heiligenmann.de/vdr/download/
> Filename: vdr-wapd-0.9.tgz
> Filesize: 31975
>
> See HISTORY and README for details. Thanks to all, who have provided
> ideas and patches.

Here are some small patches for the next version:

- i18n: fixes some missing translatable strings, adds missing/improves
  existing Finnish translations
- headers: adds missing HTTP headers to the "access denied" response
- signedness: fixes (un)signedness of source port format conversion
  in "connect from" log message - ntohs returns an uint16_t
  

Patch

diff -up wapd-0.9/access.c~ wapd-0.9/access.c
--- wapd-0.9/access.c~	2008-01-13 14:41:21.000000000 +0200
+++ wapd-0.9/access.c	2008-01-22 00:14:46.000000000 +0200
@@ -217,7 +217,7 @@  int cWapSocket::Accept(void)
            close(newsock);
            newsock = -1;
         }
-        isyslog("WAPD: connect from %s, port %hd - %s", inet_ntoa(clientname.sin_addr), ntohs(clientname.sin_port), accepted ? "accepted" : "DENIED");
+        isyslog("WAPD: connect from %s, port %hu - %s", inet_ntoa(clientname.sin_addr), ntohs(clientname.sin_port), accepted ? "accepted" : "DENIED");
      } else if (errno != EINTR && errno != EAGAIN)
         LOG_ERROR;
      return newsock;