From bdc13f4b98483dc96dfda7b178ef003d90b86a96 Mon Sep 17 00:00:00 2001 From: Andrey Kosteltsev Date: Thu, 31 Jul 2014 00:35:28 +0400 Subject: [PATCH] fixed issue #29: bad if test? --- fexc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fexc.c b/fexc.c index c325735..234b1c9 100644 --- a/fexc.c +++ b/fexc.c @@ -68,8 +68,7 @@ static inline char *read_all(int fd, const char *filename, size_t *size) p = buf + count; } } - } else if (errno != EAGAIN || - errno != EINTR) { + } else if (errno != EAGAIN && errno != EINTR) { pr_err("%s: %s: %s\n", filename, "read", strerror(errno)); free(buf);