* 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 ce23aaeaf5d83796d258983922862ae66b903116..f5048ee7a67dcca7889ec577688f8ff8d9cc477d 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 83f23698674d01103778dc919cc4763b2d58cc19..b965bcfc0f37be501bd6463f17e07d2dc8d74a8b 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