Commit
33634a940166d0b21c3105bab8dcf5550fbbd678 accidentally changed
the return value from kcmio_unix_socket_write to be the result of the
write call. Most commonly this resulted in it returning 8, which led
to many commands failing with "Exec format error".
ticket: 8758 (new)
tags: pullup
target_version: 1.17-next
for (;;) {
ret = krb5int_net_writev(context, io->fd, sg, 2);
- if (ret < 0)
- ret = errno;
+ if (ret >= 0)
+ return 0;
+ ret = errno;
if (ret != EPIPE || reconnected)
return ret;
return ret;
reconnected = TRUE;
}
-
- return ret;
}
/* Read a KCM reply: 4-byte big-endian length, 4-byte big-endian status code,