[Slackbuilds-users] [PATCH netcat-openbsd 0/1] Fix zero seconds quit
guilhem at debian.org
Tue Jan 14 03:21:52 UTC 2020
On Mon, 13 Jan 2020 at 13:56:28 +1100, Duncan Roe wrote:
> I needed netcat -q 0 to work in a hurry so crufted up the following patch.
> The git site https://salsa.debian.org/debian/netcat-openbsd.git is up to
> revision 1.206 now so not sure if they'd be interested but cc'ing last guy to
> touch this area anyway.
FWIW upstream (OpenBSD) added a new flag in 1.110
-N shutdown(2) the network socket after EOF on the input. Some servers require this to finish their work
As for the Debian package and Debian-specific quite-timer flag, since
1.130-3 (Stretch) ‘-q0’ aliases to ‘-N’:
* Change defaults from "-q0" to "-q-1" to match upstream defaults since the
introduction of flag "-N" in version 1.110. Passing a non-negative value
to "-q" now implies "-N"; in particular, "-q0" is now a mere alias for
"-N". (Closes: #854292)
If you're rebasing your version of netcat-openbsd on Debian's, then you
might want to reconcile with the above to avoid maintaining your own
AFAICT the the fact that -q0 is a no-op was a regression added at
https://bugs.debian.org/611964 . It was fixed when we changed the
semantics in 1.130-3.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the SlackBuilds-users