From: Todd C. Miller Date: Thu, 2 Dec 1993 00:32:44 +0000 (+0000) Subject: added flush for hpux X-Git-Tag: SUDO_1_3_0~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da4e410e9ee575a13020185fe119014a6d8487e3;p=sudo added flush for hpux --- diff --git a/getpass.c b/getpass.c index 64da3821f..25b12431e 100644 --- a/getpass.c +++ b/getpass.c @@ -78,6 +78,9 @@ char * #endif (void) fprintf(outfp, "%s", prompt); +#ifdef hpux + (void) fflush(outfp); +#endif rewind(outfp); /* implied flush */ for (p = buf; (ch = getc(fp)) != EOF && ch != '\n';) if (p < buf + PASSWD_LEN)