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

Diff for /src/usr.bin/cvs/tag.c between version 1.15 and 1.16

version 1.15, 2005/04/20 23:11:30 version 1.16, 2005/05/20 20:00:53
Line 174 
Line 174 
         root = CVS_DIR_ROOT(cfp);          root = CVS_DIR_ROOT(cfp);
   
         if (cfp->cf_type == DT_DIR) {          if (cfp->cf_type == DT_DIR) {
                 ret = cvs_senddir(root, cfp);                  if (cvs_senddir(root, cfp) < 0)
                           ret = CVS_EX_PROTO;
                 return (ret);                  return (ret);
         }          }
   
Line 197 
Line 198 
                 break;                  break;
         }          }
   
           if (ret == -1)
                   ret = CVS_EX_PROTO;
   
         return (ret);          return (ret);
 }  }
   
Line 225 
Line 229 
         if (len == -1 || len >= (int)sizeof(rcspath)) {          if (len == -1 || len >= (int)sizeof(rcspath)) {
                 errno = ENAMETOOLONG;                  errno = ENAMETOOLONG;
                 cvs_log(LP_ERRNO, "%s", rcspath);                  cvs_log(LP_ERRNO, "%s", rcspath);
                 return (-1);                  return (CVS_EX_DATA);
         }          }
   
         rf = rcs_open(rcspath, RCS_READ|RCS_WRITE);          rf = rcs_open(rcspath, RCS_READ|RCS_WRITE);
         if (rf == NULL) {          if (rf == NULL) {
                 cvs_log(LP_ERR, "failed to open %s: %s", rcspath,                  cvs_log(LP_ERR, "failed to open %s: %s", rcspath,
                     rcs_errstr(rcs_errno));                      rcs_errstr(rcs_errno));
                 return (-1);                  return (CVS_EX_DATA);
         }          }
   
         if (rcs_sym_add(rf, tag_name, tag_rev) < 0) {          if (rcs_sym_add(rf, tag_name, tag_rev) < 0) {

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16