"nc" exits silently on errors. This patch makes it print something before
authorEric Andersen <andersen@codepoet.org>
Sun, 4 Jun 2000 05:21:49 +0000 (05:21 -0000)
committerEric Andersen <andersen@codepoet.org>
Sun, 4 Jun 2000 05:21:49 +0000 (05:21 -0000)
commitafeb6834597dba7c2546f36f5de61f218fbd5b4b
tree5e7c0d19b1624086ce665e757eebb83f242d837c
parent46a38dbb9b1a5ecec99dda2eb42b456e5ac76c26
"nc" exits silently on errors. This patch makes it print something before
exit().

Note that calling perror() after gethostbyname() will most likely return
"No such file or directory" which is quite confusing, so I decided to use
fatalError instead.

Regards,
Pavel Roskin
nc.c
networking/nc.c