From: Martin Burnicki Date: Tue, 22 Jul 2008 09:41:26 +0000 (+0200) Subject: [Bug 1038] Built-in getpass() function also prompts for password if not built with... X-Git-Tag: NTP_4_2_4P5_RC2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7468165727161c1fc9d858a8ae5b371cb9195c4b;p=thirdparty%2Fntp.git [Bug 1038] Built-in getpass() function also prompts for password if not built with DEBUG. bk: 4885ab46aKc4vv3YlB83c-KH57Zucw --- diff --git a/ChangeLog b/ChangeLog index 177b3dff8..e26cc17a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 1038] Built-in getpass() function also prompts for password if not built with DEBUG. * [Bug 959] Refclock on Windows not properly releasing recvbuffs. * [Bug 993] Fix memory leak when fetching system messages. * [Bug 987] Wake up the resolver thread/process when a new interface has diff --git a/libntp/machines.c b/libntp/machines.c index d259f8d24..c8e4e07c9 100644 --- a/libntp/machines.c +++ b/libntp/machines.c @@ -500,10 +500,10 @@ getpass(const char * prompt) { int c, i; static char password[32]; -#ifdef DEBUG + fprintf(stderr, "%s", prompt); fflush(stderr); -#endif + for (i=0; i