* getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
authorSimon Josefsson <simon@josefsson.org>
Tue, 6 Sep 2005 08:21:32 +0000 (08:21 +0000)
committerSimon Josefsson <simon@josefsson.org>
Tue, 6 Sep 2005 08:21:32 +0000 (08:21 +0000)
TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.

lib/ChangeLog
lib/getpass.c

index ce23aae..f5048ee 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-06  Simon Josefsson  <jas@extundo.com>
+
+       * getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
+       TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
+
 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
 
        Change bitset word type from unsigned int to unsigned long int,
index 83f2369..b965bcf 100644 (file)
@@ -158,7 +158,7 @@ getpass (const char *prompt)
     }
 
   /* Restore the original setting.  */
-#if TCSETATTR
+#if HAVE_TCSETATTR
   if (tty_changed)
     tcsetattr (fileno (in), TCSAFLUSH | TCSASOFT, &s);
 #endif