[gnome-keyring] ssh-agent: Fix boolean logic error
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] ssh-agent: Fix boolean logic error
- Date: Mon, 18 Apr 2016 10:11:06 +0000 (UTC)
commit 3f64b67a66b42a23879d4904086676827138bcd8
Author: Michael McConville <mmcco mykolab com>
Date: Mon Apr 18 12:08:36 2016 +0200
ssh-agent: Fix boolean logic error
Signed-off-by: Stef Walter <stefw redhat com>
* From the gnome-keyring-list mailing list
daemon/ssh-agent/gkd-ssh-agent.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/ssh-agent/gkd-ssh-agent.c b/daemon/ssh-agent/gkd-ssh-agent.c
index 2ef7f3b..2a53416 100644
--- a/daemon/ssh-agent/gkd-ssh-agent.c
+++ b/daemon/ssh-agent/gkd-ssh-agent.c
@@ -86,7 +86,7 @@ write_all (int fd, const guchar *buf, int len)
res = write (fd, buf, len);
if (res < 0) {
- if (errno == EAGAIN && errno == EINTR)
+ if (errno == EAGAIN || errno == EINTR)
continue;
if (errno != EPIPE)
g_warning ("couldn't write %u bytes to client: %s", all,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]