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

Diff for /src/usr.bin/ssh/Attic/cli.c between version 1.7 and 1.8

version 1.7, 2001/02/04 15:32:23 version 1.8, 2001/02/08 19:30:51
Line 3 
Line 3 
   
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "log.h"  #include "log.h"
   #include "cli.h"
   
 #include <vis.h>  #include <vis.h>
   
Line 33 
Line 34 
                 cli_input = STDIN_FILENO;                  cli_input = STDIN_FILENO;
                 cli_output = STDERR_FILENO;                  cli_output = STDERR_FILENO;
         } else {          } else {
                 cli_input = cli_output = open("/dev/tty", O_RDWR);                  cli_input = cli_output = open(_PATH_TTY, O_RDWR);
                 if (cli_input < 0)                  if (cli_input < 0)
                         fatal("You have no controlling tty.  Cannot read passphrase.");                          fatal("You have no controlling tty.  Cannot read passphrase.");
         }          }
Line 44 
Line 45 
 }  }
   
 static void  static void
 cli_close()  cli_close(void)
 {  {
         if (!cli_from_stdin && cli_input >= 0)          if (!cli_from_stdin && cli_input >= 0)
                 close(cli_input);                  close(cli_input);
Line 55 
Line 56 
 }  }
   
 void  void
 intrcatch()  intrcatch(int sig)
 {  {
         intr = 1;          intr = 1;
 }  }
   
 static void  static void
 cli_echo_disable()  cli_echo_disable(void)
 {  {
         sigemptyset(&nset);          sigemptyset(&nset);
         sigaddset(&nset, SIGTSTP);          sigaddset(&nset, SIGTSTP);
Line 84 
Line 85 
 }  }
   
 static void  static void
 cli_echo_restore()  cli_echo_restore(void)
 {  {
         if (echo_modified != 0) {          if (echo_modified != 0) {
                 tcsetattr(cli_input, TCSANOW, &otio);                  tcsetattr(cli_input, TCSANOW, &otio);

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