[BACK]Return to tgetpass.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / sudo

Diff for /src/usr.bin/sudo/Attic/tgetpass.c between version 1.13 and 1.14

version 1.13, 2007/10/17 15:40:54 version 1.14, 2008/01/21 19:44:29
Line 70 
Line 70 
 #include "sudo.h"  #include "sudo.h"
   
 #ifndef lint  #ifndef lint
 __unused static const char rcsid[] = "$Sudo: tgetpass.c,v 1.111.2.5 2007/10/17 15:39:43 millert Exp $";  __unused static const char rcsid[] = "$Sudo: tgetpass.c,v 1.111.2.6 2008/01/16 18:03:24 millert Exp $";
 #endif /* lint */  #endif /* lint */
   
 #ifndef TCSASOFT  #ifndef TCSASOFT
Line 107 
Line 107 
 #  define tcsetattr(f, a, t)    ioctl(f, a, t)  #  define tcsetattr(f, a, t)    ioctl(f, a, t)
 #  undef TCSAFLUSH  #  undef TCSAFLUSH
 #  define TCSAFLUSH             TCSETAF  #  define TCSAFLUSH             TCSETAF
 #  undef TCSANOW  
 #  define TCSANOW               TCSETA  
 # else  # else
 #  undef termios  #  undef termios
 #  define termios               sgttyb  #  define termios               sgttyb
Line 117 
Line 115 
 #  define tcsetattr(f, a, t)    ioctl(f, a, t)  #  define tcsetattr(f, a, t)    ioctl(f, a, t)
 #  undef TCSAFLUSH  #  undef TCSAFLUSH
 #  define TCSAFLUSH             TIOCSETP  #  define TCSAFLUSH             TIOCSETP
 #  undef TCSANOW  
 #  define TCSANOW               TIOCSETN  
 # endif /* HAVE_TERMIO_H */  # endif /* HAVE_TERMIO_H */
 #endif /* HAVE_TERMIOS_H */  #endif /* HAVE_TERMIOS_H */
   
Line 202 
Line 198 
   
     /* Restore old tty settings and signals. */      /* Restore old tty settings and signals. */
     if (memcmp(&term, &oterm, sizeof(term)) != 0) {      if (memcmp(&term, &oterm, sizeof(term)) != 0) {
         while (tcsetattr(input, TCSANOW|TCSASOFT, &oterm) == -1 &&          while (tcsetattr(input, TCSAFLUSH|TCSASOFT, &oterm) == -1 &&
             errno == EINTR)              errno == EINTR)
             continue;              continue;
     }      }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14