askpass.c revision 76b43e4417bab52e913da39b5f5bc2a130d3f149
/* Copyright (c) 2006-2008 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "askpass.h"
#include <stdio.h>
#include <termios.h>
#include <fcntl.h>
#include <unistd.h>
{
bool restore_tio = FALSE;
char ch;
int fd;
if (!isatty(STDIN_FILENO))
i_fatal("stdin isn't a TTY");
if (fd < 0)
/* turn off echo */
restore_tio = TRUE;
}
/* read the password */
pos = 0;
break;
break;
}
if (restore_tio)
}