Permalink
Browse files

io.c - minor cleanup after cherry-picks

  • Loading branch information...
1 parent e8bb2bb commit ef9195e6295c4977db4373ea9eee4f991566b819 @bwalex committed Nov 16, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 io.c
View
3 io.c
@@ -391,18 +391,15 @@ read_passphrase(const char *prompt, char *pass, size_t passlen, time_t timeout)
FD_SET(fd, &fds);
nready = select(fd + 1, &fds, NULL, NULL, &to);
if (nready <= 0) {
- tc_log(1, "Timeout waiting for password.\n");
r = EINTR;
goto out;
}
}
n = read(fd, pass, passlen-1);
-
if (n > 0) {
pass[n-1] = '\0'; /* Strip trailing \n */
} else {
- tc_log(1, "IO error %d, %s\n", n, errno);
r = EIO;
}

0 comments on commit ef9195e

Please sign in to comment.