diff options
Diffstat (limited to 'trust/save.c')
-rw-r--r-- | trust/save.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trust/save.c b/trust/save.c index b7ab21e..66c9050 100644 --- a/trust/save.c +++ b/trust/save.c @@ -145,7 +145,7 @@ p11_save_write (p11_save_file *file, while (written < length) { res = write (file->fd, buf + written, length - written); if (res <= 0) { - if (errno == EAGAIN && errno == EINTR) + if (errno == EAGAIN || errno == EINTR) continue; p11_message_err (errno, "couldn't write to file: %s", file->temp); return false; |