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

Diff for /src/usr.bin/ssh/sshpty.c between version 1.7.2.2 and 1.8

version 1.7.2.2, 2003/09/16 21:20:29 version 1.8, 2003/02/03 08:56:16
Line 181 
Line 181 
                 error("chmod %.100s 0666 failed: %.100s", ttyname, strerror(errno));                  error("chmod %.100s 0666 failed: %.100s", ttyname, strerror(errno));
 }  }
   
 /* Makes the tty the process's controlling tty and sets it to sane modes. */  /* Makes the tty the processes controlling tty and sets it to sane modes. */
   
 void  void
 pty_make_controlling_tty(int *ttyfd, const char *ttyname)  pty_make_controlling_tty(int *ttyfd, const char *ttyname)
Line 290 
Line 290 
                         if (errno == EROFS &&                          if (errno == EROFS &&
                             (st.st_mode & (S_IRGRP | S_IROTH)) == 0)                              (st.st_mode & (S_IRGRP | S_IROTH)) == 0)
                                 debug("chmod(%.100s, 0%o) failed: %.100s",                                  debug("chmod(%.100s, 0%o) failed: %.100s",
                                     ttyname, (u_int)mode, strerror(errno));                                      ttyname, mode, strerror(errno));
                         else                          else
                                 fatal("chmod(%.100s, 0%o) failed: %.100s",                                  fatal("chmod(%.100s, 0%o) failed: %.100s",
                                     ttyname, (u_int)mode, strerror(errno));                                      ttyname, mode, strerror(errno));
                 }                  }
         }          }
 }  }

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