]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1038] Built-in getpass() function also prompts for password if not built with...
authorMartin Burnicki <burnicki@ntp.org>
Tue, 22 Jul 2008 09:41:26 +0000 (11:41 +0200)
committerMartin Burnicki <burnicki@ntp.org>
Tue, 22 Jul 2008 09:41:26 +0000 (11:41 +0200)
bk: 4885ab46aKc4vv3YlB83c-KH57Zucw

ChangeLog
libntp/machines.c

index 177b3dff8e672917790ebe47d9c5d3aa65e1fcea..e26cc17a385f0e63662f08f6a0fc53268328dce2 100644 (file)
--- 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
index d259f8d24d4350f98b156ff9a34a80da14be79a4..c8e4e07c9c0ec271e3d4c399b98656ded9615afc 100644 (file)
@@ -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<sizeof(password)-1 && ((c=_getch())!='\n' && c!='\r'); i++) {
                password[i] = (char) c;
        }