summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-04-23 20:29:26 +0000
committerLaurent Bercot <ska@appnovation.com>2024-04-23 20:29:26 +0000
commitadf53fc275a1ea5959f4b3e55b290026009e973c (patch)
tree8360054c61f5d0be3ab028aebe0dd6790400a3aa
parente8eb657e23912ac34821e2fcadf6ea7dfed90fce (diff)
downloads6-networking-adf53fc275a1ea5959f4b3e55b290026009e973c.tar.xz
Prepare for 2.7.0.3; fix s6-tcpserverd fd bug
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--AUTHORS1
-rw-r--r--INSTALL10
-rw-r--r--NEWS6
-rw-r--r--doc/index.html12
-rw-r--r--doc/upgrade.html17
-rw-r--r--package/info2
-rw-r--r--src/conn-tools/s6-tcpserverd.c13
7 files changed, 40 insertions, 21 deletions
diff --git a/AUTHORS b/AUTHORS
index cf75642..a6a46e6 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -18,3 +18,4 @@ Thanks to:
Petr Vaněk <arkamar@atlas.cz>
Alex Grabowski <hurufu@gmail.com>
pjvm <pjvm742@disroot.org>
+ Jan Pobříslo <ccx@te2000.cz>
diff --git a/INSTALL b/INSTALL
index 1416d93..a4e5094 100644
--- a/INSTALL
+++ b/INSTALL
@@ -6,14 +6,14 @@ Build Instructions
- A POSIX-compliant C development environment
- GNU make version 3.81 or later
- - skalibs version 2.14.1.0 or later: https://skarnet.org/software/skalibs/
- - Optional (but recommended): execline version 2.9.4.0 or later: https://skarnet.org/software/execline/
- - s6 version 2.12.0.3 or later: https://skarnet.org/software/s6/
+ - skalibs version 2.14.1.1 or later: https://skarnet.org/software/skalibs/
+ - Optional (but recommended): execline version 2.9.5.1 or later: https://skarnet.org/software/execline/
+ - s6 version 2.12.0.4 or later: https://skarnet.org/software/s6/
- s6-dns version 2.3.7.1 or later: https://skarnet.org/software/s6-dns/
- Depending on whether you build the SSL tools,
bearssl version 0.6 or later: https://bearssl.org/
- or libressl version 3.8.2 or later: https://libressl.org/
- or openssl version 1.1.1w or later: https://openssl.org/ *in addition to*
+ or libressl version 3.9.1 or later: https://libressl.org/
+ or openssl version 3.3.0 or later: https://openssl.org/ *in addition to*
libretls version 3.8.1 or later: https://git.causal.agency/libretls/about/
This software will run on any operating system that implements
diff --git a/NEWS b/NEWS
index 97f601c..b9dbd5d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,11 @@
Changelog for s6-networking.
+In 2.7.0.3
+----------
+
+ - Bugfixes.
+
+
In 2.7.0.2
----------
diff --git a/doc/index.html b/doc/index.html
index 78fefc0..edf9d65 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -55,13 +55,13 @@ as extensions to the s6 ecosystem.
<li> A POSIX-compliant system with a standard C development environment </li>
<li> GNU make, version 3.81 or later </li>
<li> <a href="//skarnet.org/software/skalibs/">skalibs</a> version
-2.14.1.0 or later. It's a build-time requirement. It's also a run-time
+2.14.1.1 or later. It's a build-time requirement. It's also a run-time
requirement if you link against the shared version of the skalibs
library. </li>
<li> (Optional, but recommended) <a href="//skarnet.org/software/execline/">execline</a> version
-2.9.4.0 or later. It's a build-time and run-time requirement. </li>
+2.9.5.1 or later. It's a build-time and run-time requirement. </li>
<li> <a href="//skarnet.org/software/s6/">s6</a> version
-2.12.0.3 or later. It's a build-time and run-time requirement. </li>
+2.12.0.4 or later. It's a build-time and run-time requirement. </li>
<li> <a href="//skarnet.org/software/s6-dns/">s6-dns</a> version
2.3.7.1 or later. It's a build-time requirement. It's also a run-time
requirement if you link against the shared version of the s6-dns
@@ -70,9 +70,9 @@ libraries. </li>
<ul>
<li> Either <a href="https://bearssl.org/">BearSSL</a> version 0.6
or later. </li>
- <li> Or <a href="https://libressl.org/">LibreSSL</a> version 3.8.2
+ <li> Or <a href="https://libressl.org/">LibreSSL</a> version 3.9.1
or later. </li>
- <li> Or <a href="https://openssl.org/">OpenSSL</a> version 1.1.1w
+ <li> Or <a href="https://openssl.org/">OpenSSL</a> version 3.3.0
or later <em>and</em>
<a href="https://git.causal.agency/libretls/about/">LibreTLS</a>
version 3.8.1 or later. </li>
@@ -91,7 +91,7 @@ run-time requirement if you link against its shared version. </li>
<ul>
<li> The current released version of s6-networking is
-<a href="s6-networking-2.7.0.2.tar.gz">2.7.0.2</a>. </li>
+<a href="s6-networking-2.7.0.3.tar.gz">2.7.0.3</a>. </li>
<li> Alternatively, you can checkout a copy of the
<a href="//git.skarnet.org/cgi-bin/cgit.cgi/s6-networking/">s6-networking
git repository</a>:
diff --git a/doc/upgrade.html b/doc/upgrade.html
index 575e356..9fe78fe 100644
--- a/doc/upgrade.html
+++ b/doc/upgrade.html
@@ -18,6 +18,23 @@
<h1> What has changed in s6-networking </h1>
+<h2> in 2.7.0.3 </h2>
+
+<ul>
+ <li> <a href="//skarnet.org/software/skalibs/">skalibs</a>
+dependency bumped to 2.14.1.1 </li>
+ <li> <a href="//skarnet.org/software/execline/">execline</a>
+dependency bumped to 2.9.5.1 </li>
+ <li> <a href="//skarnet.org/software/s6/">s6</a>
+dependency bumped to 2.12.0.4 </li>
+ <li> <a href="https://libressl.org">LibreSSL</a>
+optional dependency bumped to 3.9.1 </li>
+ <li> <a href="https://openssl.org">OpenSSL</a>
+optional dependency bumped to 3.3.0 </li>
+ <li> <a href="https://git.causal.agency/libretls/about/">LibreTLS</a>
+optional dependency bumped to 3.8.1 </li>
+</ul>
+
<h2> in 2.7.0.2 </h2>
<ul>
diff --git a/package/info b/package/info
index a3bea87..d5fc19f 100644
--- a/package/info
+++ b/package/info
@@ -1,4 +1,4 @@
package=s6-networking
-version=2.7.0.2
+version=2.7.0.3
category=net
package_macro_name=S6_NETWORKING
diff --git a/src/conn-tools/s6-tcpserverd.c b/src/conn-tools/s6-tcpserverd.c
index e8c2c34..21946d9 100644
--- a/src/conn-tools/s6-tcpserverd.c
+++ b/src/conn-tools/s6-tcpserverd.c
@@ -263,8 +263,8 @@ static inline void new_connection (int s, char const *ip, uint16_t port, char co
{
cspawn_fileaction fa[2] =
{
- [0] = { .type = CSPAWN_FA_MOVE, .x = { .fd2 = { [0] = 0, [1] = s } } },
- [1] = { .type = CSPAWN_FA_COPY, .x = { .fd2 = { [0] = 1, [1] = 0 } } }
+ [0] = { .type = CSPAWN_FA_MOVE, .x = { .fd2 = { [0] = 1, [1] = s } } },
+ [1] = { .type = CSPAWN_FA_COPY, .x = { .fd2 = { [0] = 0, [1] = 1 } } }
} ;
char const *newenvp[envlen + 7] ;
env_mergen(newenvp, envlen + 7, envp, envlen, modifs, m, 6) ;
@@ -322,12 +322,7 @@ int main (int argc, char const *const *argv)
}
if (coe(0) == -1 || ndelay_on(0) == -1)
strerr_diefu1sys(111, "set socket flags") ;
- if (flag1)
- {
- if (fcntl(1, F_GETFD) < 0)
- strerr_dief1sys(100, "called with option -1 but stdout said") ;
- }
- else close(1) ;
+ if (!fd_ensure_open(1, 1)) strerr_diefu1sys(111, "sanitize stdout") ;
if (!maxconn) maxconn = 1 ;
if (maxconn > ABSOLUTE_MAXCONN) maxconn = ABSOLUTE_MAXCONN ;
if (localmaxconn > maxconn) localmaxconn = maxconn ;
@@ -402,8 +397,8 @@ int main (int argc, char const *const *argv)
memcpy(fmtport, modifs + portpos, portlen) ;
fmtport[portlen] = '\n' ;
allwrite(1, fmtport, portlen + 1) ;
- close(1) ;
}
+ close(1) ;
}
while (cont)