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

Diff for /src/usr.bin/tmux/session.c between version 1.41 and 1.42

version 1.41, 2013/10/10 12:26:36 version 1.42, 2014/01/22 14:00:08
Line 175 
Line 175 
         RB_INSERT(sessions, &dead_sessions, s);          RB_INSERT(sessions, &dead_sessions, s);
 }  }
   
 /* Check a session name is valid: not empty and no colons. */  /* Check a session name is valid: not empty and no colons or periods. */
 int  int
 session_check_name(const char *name)  session_check_name(const char *name)
 {  {
         return (*name != '\0' && strchr(name, ':') == NULL);          return (*name != '\0' && name[strcspn(name, ":.")] == '\0');
 }  }
   
 /* Update session active time. */  /* Update session active time. */

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42