Blame SOURCES/0001-library-Fix-check-for-EAGAIN-or-EINTR.patch

59dcbd
From 836dcc4ef75d6ae46661e61be73c8b7737f85f68 Mon Sep 17 00:00:00 2001
59dcbd
From: Stef Walter <stefw@redhat.com>
59dcbd
Date: Thu, 14 Apr 2016 10:00:13 +0200
59dcbd
Subject: [PATCH 1/3] library: Fix check for EAGAIN or EINTR
59dcbd
59dcbd
https://bugs.freedesktop.org/show_bug.cgi?id=71257
59dcbd
---
59dcbd
 library/adutil.c | 2 +-
59dcbd
 1 file changed, 1 insertion(+), 1 deletion(-)
59dcbd
59dcbd
diff --git a/library/adutil.c b/library/adutil.c
59dcbd
index 60f9d5e..21ccd27 100644
59dcbd
--- a/library/adutil.c
59dcbd
+++ b/library/adutil.c
59dcbd
@@ -377,7 +377,7 @@ _adcli_write_all (int fd,
59dcbd
 	while (len > 0) {
59dcbd
 		res = write (fd, buf, len);
59dcbd
 		if (res <= 0) {
59dcbd
-			if (errno == EAGAIN && errno == EINTR)
59dcbd
+			if (errno == EAGAIN || errno == EINTR)
59dcbd
 				continue;
59dcbd
 			return -errno;
59dcbd
 		} else  {
59dcbd
-- 
59dcbd
2.5.5
59dcbd