On NT, it looks like isatty doesn't always work. Since we always use stdin for this use

that test instead.
This commit is contained in:
relyea%netscape.com 2001-02-28 01:58:02 +00:00
Родитель a1f1e67e84
Коммит 4c010838b2
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -84,7 +84,11 @@ char *SEC_GetPassword(FILE *input, FILE *output, char *prompt,
{
char phrase[200];
int infd = fileno(input);
#ifdef _WINDOWS
int isTTY = (input == stdin);
#else
int isTTY = isatty(infd);
#endif
for (;;) {
/* Prompt for password */
if (isTTY) {