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

Diff for /src/usr.bin/ssh/mux.c between version 1.55 and 1.56

version 1.55, 2015/10/15 23:51:40 version 1.56, 2015/12/03 17:00:18
Line 1832 
Line 1832 
             mm_send_fd(fd, STDERR_FILENO) == -1)              mm_send_fd(fd, STDERR_FILENO) == -1)
                 fatal("%s: send fds failed", __func__);                  fatal("%s: send fds failed", __func__);
   
           if (pledge("stdio proc tty", NULL) == -1)
                   fatal("%s pledge(): %s", __func__, strerror(errno));
   
         debug3("%s: session request sent", __func__);          debug3("%s: session request sent", __func__);
   
         /* Read their reply */          /* Read their reply */
Line 1977 
Line 1980 
             mm_send_fd(fd, STDOUT_FILENO) == -1)              mm_send_fd(fd, STDOUT_FILENO) == -1)
                 fatal("%s: send fds failed", __func__);                  fatal("%s: send fds failed", __func__);
   
           if (pledge("stdio proc tty", NULL) == -1)
                   fatal("%s pledge(): %s", __func__, strerror(errno));
   
         debug3("%s: stdio forward request sent", __func__);          debug3("%s: stdio forward request sent", __func__);
   
         /* Read their reply */          /* Read their reply */
Line 2138 
Line 2144 
                 return;                  return;
         }          }
         set_nonblock(sock);          set_nonblock(sock);
   
           if (pledge("stdio sendfd proc tty", NULL) == -1)
                   fatal("%s pledge(): %s", __func__, strerror(errno));
   
         if (mux_client_hello_exchange(sock) != 0) {          if (mux_client_hello_exchange(sock) != 0) {
                 error("%s: master hello exchange failed", __func__);                  error("%s: master hello exchange failed", __func__);

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56