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

Diff for /src/usr.bin/tmux/cmd-load-buffer.c between version 1.4 and 1.5

version 1.4, 2009/07/26 12:58:44 version 1.5, 2009/07/30 17:46:12
Line 60 
Line 60 
                 ctx->error(ctx, "%s: %s", data->arg, strerror(errno));                  ctx->error(ctx, "%s: %s", data->arg, strerror(errno));
                 return (-1);                  return (-1);
         }          }
         if (!S_ISREG(statbuf.st_mode)) {  
                 ctx->error(ctx, "%s: not a regular file", data->arg);  
                 return (-1);  
         }  
   
         if ((f = fopen(data->arg, "rb")) == NULL) {          if ((f = fopen(data->arg, "rb")) == NULL) {
                 ctx->error(ctx, "%s: %s", data->arg, strerror(errno));                  ctx->error(ctx, "%s: %s", data->arg, strerror(errno));

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5