(check_and_close, dump, dump_strings): Don't report bogus errno value
authorJim Meyering <jim@meyering.net>
Wed, 24 Sep 2003 08:21:30 +0000 (08:21 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 24 Sep 2003 08:21:30 +0000 (08:21 +0000)
commite7bebd6729efc79d0b6d0edb3245096c1d87503f
treeb9b1600c676377a0130d82a47ea62456fb42a139
parent1790ed9cb852ed68ae67ce1fd610467c4e2d9731
(check_and_close, dump, dump_strings): Don't report bogus errno value
after ferror discovers an output error.  We don't know the proper
errno value, since it might have been caused by any of a whole
bunch of calls, and it might have been trashed in the meantime.
Fixing this problem will require much more extensive changes;
in the meantime just say "write error".

(skip): If a read fails, don't retry it later, so
that we report the proper errno.
src/od.c