summaryrefslogtreecommitdiff
path: root/lib/safe-read.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/safe-read.c')
-rw-r--r--lib/safe-read.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/safe-read.c b/lib/safe-read.c
index 2e43070da..76bb64044 100644
--- a/lib/safe-read.c
+++ b/lib/safe-read.c
@@ -66,12 +66,12 @@ safe_rw (int fd, void const *buf, size_t count)
ssize_t result = rw (fd, buf, count);
if (0 <= result)
- return result;
+ return result;
else if (IS_EINTR (errno))
- continue;
+ continue;
else if (errno == EINVAL && BUGGY_READ_MAXIMUM < count)
- count = BUGGY_READ_MAXIMUM;
+ count = BUGGY_READ_MAXIMUM;
else
- return result;
+ return result;
}
}