diff options
author | Egor Chelak <egor.chelak@gmail.com> | 2020-11-06 21:09:14 +0200 |
---|---|---|
committer | Egor Chelak <egor.chelak@gmail.com> | 2020-11-09 07:19:51 +0200 |
commit | 418eb09482ddef66352e6677211ca3341267223d (patch) | |
tree | 6b99ad125ad4e410919367af669592309a495c1b /lib/fileutils.c | |
parent | 7951164c1ff71c86d93458c8b571d1a4b2ad3e59 (diff) | |
download | util-linux-418eb09482ddef66352e6677211ca3341267223d.tar.gz |
read_all: return 0 when EOF occurs after 0 bytes
Originally it would return -1 (without setting errno) if the fd was
already at EOF when you called read_all.
This is already fixed in sendfile_all.
Reviewed-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Egor Chelak <egor.chelak@gmail.com>
Diffstat (limited to 'lib/fileutils.c')
0 files changed, 0 insertions, 0 deletions