If an error path if close() is called, save errno so that original error
authorderaadt <deraadt@openbsd.org>
Tue, 28 Jun 2016 00:01:10 +0000 (00:01 +0000)
committerderaadt <deraadt@openbsd.org>
Tue, 28 Jun 2016 00:01:10 +0000 (00:01 +0000)
commit5f45aa5fe47a56affd328edadbb7437eaed2d8c0
tree23da5d6379d1f9925088cadab30fcc5f50bb94b3
parentd31f438b717cb4c462a1f9c631d025650474274c
If an error path if close() is called, save errno so that original error
is shown by errx
ok millert krw
usr.bin/nc/netcat.c