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

Diff for /src/usr.bin/tmux/cmd-new-session.c between version 1.37 and 1.38

version 1.37, 2011/04/05 19:37:01 version 1.38, 2011/04/06 21:51:31
Line 68 
Line 68 
         u_int                    sx, sy, i;          u_int                    sx, sy, i;
   
         newname = args_get(args, 's');          newname = args_get(args, 's');
         if (newname != NULL && session_find(newname) != NULL) {          if (newname != NULL) {
                 ctx->error(ctx, "duplicate session: %s", newname);                  if (!session_check_name(newname)) {
                 return (-1);                          ctx->error(ctx, "bad session name: %s", newname);
                           return (-1);
                   }
                   if (session_find(newname) != NULL) {
                           ctx->error(ctx, "duplicate session: %s", newname);
                           return (-1);
                   }
         }          }
   
         target = args_get(args, 't');          target = args_get(args, 't');

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38