bin/176713: [patch] nc(1) closes network socket too soon

Ronald F. Guilmette rfg at tristatelogic.com
Sat Jul 20 14:31:58 UTC 2013



Could someone please take a look at this bug report (bin/176713) and
also at the simple patch that I provided to fix the problem?

This is quite a serious problem, and my PR has been pending with no
action since Wed, 6 Mar 2013.


Regards,
rfg


P.S.  Please note that in reality, I do not believe that it is necessary
to add a new -q option in order to preserve backwards compatability, however
I proposed one because in my experience there is always going to be some
purist who will claim that *any* change in semantics, however small or
helpful, in *any* software ``may'' break something.  In reality, the
problem in this can most easily be solved simply by removing the one
statement:

	shutdown(nfd, SHUT_WR);

entirely from the source, rather than making it conditional on -q, as I
suggested in my PR, bin/176713.

P.P.S.  I have just realized that yet one more critical enhancement for
nc is called for, and I will be filing a separate and additional PR for
that soon.  I hope that someone will be able to take a look at that as
soon as it is filed.


More information about the freebsd-hackers mailing list