+2003-02-08 Tom Yu <tlyu@mit.edu>
+
+ * prompter.c (krb5_prompter_posix): Kill echo before printing
+ prompt to avoid possible race conditions in test suite.
+
2003-02-06 Tom Yu <tlyu@mit.edu>
* prompter.c (krb5_prompter_posix, setup_tty, restore_tty): Fix to
/* fgets() takes int, but krb5_data.length is unsigned. */
if (prompts[i].reply->length > INT_MAX)
goto cleanup;
+
+ errcode = setup_tty(fp, prompts[i].hidden);
+ if (errcode)
+ break;
+
/* put out the prompt */
(void)fputs(prompts[i].prompt, stdout);
(void)fputs(": ", stdout);
(void)fflush(stdout);
(void)memset(prompts[i].reply->data, 0, prompts[i].reply->length);
- errcode = setup_tty(fp, prompts[i].hidden);
- if (errcode) {
- if (prompts[i].hidden)
- putchar('\n');
- break;
- }
got_int = 0;
retp = fgets(prompts[i].reply->data, (int)prompts[i].reply->length,
fp);