зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
a1f1e67e84
Коммит
4c010838b2
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче