Blame SOURCES/read_conf.patch

641eac
diff --git a/libtcmu_config.c b/libtcmu_config.c
641eac
index 895b712..a17e74d 100644
641eac
--- a/libtcmu_config.c
641eac
+++ b/libtcmu_config.c
641eac
@@ -202,7 +202,7 @@ static int tcmu_read_config(int fd, char *buf, int count)
641eac
 
641eac
 	do {
641eac
 		len = read(fd, buf, count);
641eac
-	} while (errno == EAGAIN);
641eac
+	} while (len < 0 && errno == EAGAIN);
641eac
 
641eac
 	errno = save;
641eac
 	return len;