[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.211 and 1.212

version 1.211, 2023/04/17 18:00:19 version 1.212, 2024/05/15 09:59:12
Line 239 
Line 239 
         return (NULL);          return (NULL);
 }  }
   
   char *
   shell_argv0(const char *shell, int is_login)
   {
           const char      *slash, *name;
           char            *argv0;
   
           slash = strrchr(shell, '/');
           if (slash != NULL && slash[1] != '\0')
                   name = slash + 1;
           else
                   name = shell;
           if (is_login)
                   xasprintf(&argv0, "-%s", name);
           else
                   xasprintf(&argv0, "%s", name);
           return (argv0);
   }
   
 void  void
 setblocking(int fd, int state)  setblocking(int fd, int state)
 {  {

Legend:
Removed from v.1.211  
changed lines
  Added in v.1.212