[Slackbuilds-users] [PATCH netcat-openbsd 0/1] Fix zero seconds quit
Guilhem Moulin
guilhem at debian.org
Tue Jan 14 03:21:52 UTC 2020
Hi there,
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
patches forever.
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.
Cheers,
--
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20200114/28313365/attachment.asc>
More information about the SlackBuilds-users
mailing list