[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.67 and 1.68

version 1.67, 2010/02/04 18:20:16 version 1.68, 2010/02/04 18:27:06
Line 443 
Line 443 
                 }                  }
         }          }
   
         if (label == NULL)          /*
                 label = xstrdup("default");           * Figure out the socket path. If specified on the command-line with
         if (path == NULL && (path = makesockpath(label)) == NULL) {           * -S or -L, use it, otherwise try $TMUX or assume -L default.
                 log_warn("can't create socket");           */
                 exit(1);          if (path == NULL) {
                   /* No -L. Try $TMUX, or default. */
                   if (label == NULL) {
                           if ((path = getenv("TMUX")) != NULL) {
                                   path = xstrdup(path);
                                   path[strcspn(path, ",")] = '\0';
                           } else
                                   label = xstrdup("default");
                   }
   
                   /* -L or default set. */
                   if (label != NULL) {
                           if ((path = makesockpath(label)) == NULL) {
                                   log_warn("can't create socket");
                                   exit(1);
                           }
                   }
         }          }
         xfree(label);          if (label != NULL)
                   xfree(label);
   
         if (shellcmd != NULL) {          if (shellcmd != NULL) {
                 msg = MSG_SHELL;                  msg = MSG_SHELL;

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68