(krb5_prompter_posix): implement the case of unhidden prompts.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3649 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-10-20 03:50:09 +00:00
parent 81e2a51785
commit 56a11ce131

View File

@@ -59,7 +59,16 @@ krb5_prompter_posix (krb5_context context,
0))
return 1;
} else {
abort ();
char *s = prompts[i].reply->data;
fputs (prompts[i].prompt, stdout);
fflush (stdout);
if(fgets(prompts[i].reply->data,
prompts[i].reply->length,
stdin) == NULL)
return 1;
if(s[strlen(s) - 1] == '\n')
s[strlen(s) - 1] = '\0';
}
}
return 0;