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

Diff for /src/usr.bin/tmux/tmux.c between version 1.180 and 1.181

version 1.180, 2017/04/19 12:44:29 version 1.181, 2017/04/20 17:49:26
Line 32 
Line 32 
 #include <string.h>  #include <string.h>
 #include <time.h>  #include <time.h>
 #include <unistd.h>  #include <unistd.h>
   #include <util.h>
   
 #include "tmux.h"  #include "tmux.h"
   
Line 260 
Line 261 
         if (shellcmd != NULL && argc != 0)          if (shellcmd != NULL && argc != 0)
                 usage();                  usage();
   
         if (pty_open(&ptm_fd) != 0)          if ((ptm_fd = getptmfd()) == -1)
                 errx(1, "open(\"/dev/ptm\"");                  err(1, "getptmfd");
         if (pledge("stdio rpath wpath cpath flock fattr unix getpw sendfd "          if (pledge("stdio rpath wpath cpath flock fattr unix getpw sendfd "
             "recvfd proc exec tty ps", NULL) != 0)              "recvfd proc exec tty ps", NULL) != 0)
                 err(1, "pledge");                  err(1, "pledge");

Legend:
Removed from v.1.180  
changed lines
  Added in v.1.181