[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.7 and 1.8

version 1.7, 2002/01/03 03:49:16 version 1.8, 2003/03/15 21:23:54
Line 83 
Line 83 
 #include "sudo.h"  #include "sudo.h"
   
 #ifndef lint  #ifndef lint
 static const char rcsid[] = "$Sudo: tgetpass.c,v 1.103 2001/12/17 23:56:47 millert Exp $";  static const char rcsid[] = "$Sudo: tgetpass.c,v 1.104 2002/12/13 18:20:34 millert Exp $";
 #endif /* lint */  #endif /* lint */
   
 #ifndef TCSASOFT  #ifndef TCSASOFT
Line 154 
Line 154 
         output = STDERR_FILENO;          output = STDERR_FILENO;
     }      }
   
     if (prompt)  
         (void) write(output, prompt, strlen(prompt));  
   
     /*      /*
      * Catch signals that would otherwise cause the user to end       * Catch signals that would otherwise cause the user to end
      * up with echo turned off in the shell.  Don't worry about       * up with echo turned off in the shell.  Don't worry about
Line 186 
Line 183 
         memset(&term, 0, sizeof(term));          memset(&term, 0, sizeof(term));
         memset(&oterm, 0, sizeof(oterm));          memset(&oterm, 0, sizeof(oterm));
     }      }
   
       if (prompt)
           (void) write(output, prompt, strlen(prompt));
   
     pass = tgetline(input, buf, sizeof(buf), timeout);      pass = tgetline(input, buf, sizeof(buf), timeout);
     save_errno = errno;      save_errno = errno;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8