pkgsrc/net/sslh/patches/patch-echosrv.c
bsiegert 21bc7cee81 Update sslh to 1.16. Patch provided by Nils Ratusznik in PR pkg/49257.
Changelog for sslh is the following :
v1.16: 11FEB2014
Probes made more resilient, to incoming data containing NULLs. Also made
them behave properly when receiving too short packets to probe on the
first incoming packet.
(Ondrej Kuzník)
Libcap support: Keep only CAP_NET_ADMIN if started as root with
transparent proxying and dropping priviledges (enable USELIBCAP in
Makefile). This avoids having to mess with filesystem capabilities.
(Sebastian Schmidt/yath)
Fixed bugs related to getpeername that would cause sslh to quit
erroneously (getpeername can return actual errors if connections are
dropped before getting to getpeername).
Set IP_FREEDBIND if available to bind to addresses that don't yet exist.

Changelog for pkgsrc :
- now uses Github for fetching source, ${HOMEPAGE} says : "sslh is
  managed in Git and pushed to Github" ;
- replaced #!/bin/bash with #!/bin/sh in genver.sh, choice of sh instead
  of bash is because of a commit in sslh github :
62cbb55b8e
2014-11-28 10:45:27 +00:00

15 lines
492 B
C

$NetBSD: patch-echosrv.c,v 1.2 2014/11/28 10:45:28 bsiegert Exp $
* getopt_long_only does not exist on NetBSD getopt.
--- echosrv.c.orig 2014-02-11 21:06:01.000000000 +0000
+++ echosrv.c
@@ -64,7 +64,7 @@ void parse_cmdline(int argc, char* argv[
};
struct addrinfo **a;
- while ((c = getopt_long_only(argc, argv, "l:p:", options, NULL)) != -1) {
+ while ((c = getopt_long(argc, argv, "l:p:", options, NULL)) != -1) {
if (c == 0) continue;
switch (c) {