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

Diff for /src/usr.bin/tmux/file.c between version 1.6 and 1.7

version 1.6, 2020/05/08 14:15:11 version 1.7, 2020/05/26 08:41:47
Line 242 
Line 242 
                 cf->path = xstrdup("-");                  cf->path = xstrdup("-");
   
                 fd = STDOUT_FILENO;                  fd = STDOUT_FILENO;
                 if (c == NULL || c->flags & CLIENT_ATTACHED) {                  if (c == NULL ||
                       (c->flags & CLIENT_ATTACHED) ||
                       (c->flags & CLIENT_CONTROL)) {
                         cf->error = EBADF;                          cf->error = EBADF;
                         goto done;                          goto done;
                 }                  }
Line 311 
Line 313 
                 cf->path = xstrdup("-");                  cf->path = xstrdup("-");
   
                 fd = STDIN_FILENO;                  fd = STDIN_FILENO;
                 if (c == NULL || c->flags & CLIENT_ATTACHED) {                  if (c == NULL ||
                       (c->flags & CLIENT_ATTACHED) ||
                       (c->flags & CLIENT_CONTROL)) {
                         cf->error = EBADF;                          cf->error = EBADF;
                         goto done;                          goto done;
                 }                  }

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