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

Diff for /src/usr.bin/cvs/root.c between version 1.11 and 1.12

version 1.11, 2004/08/31 11:54:35 version 1.12, 2004/12/06 21:03:13
Line 183 
Line 183 
                 }                  }
   
                 root->cr_user = cp;                  root->cr_user = cp;
         }          } else
         else  
                 sp = cp;                  sp = cp;
   
         pp = strchr(sp, ':');          pp = strchr(sp, ':');
Line 215 
Line 214 
         if (tmp == NULL) {          if (tmp == NULL) {
                 /* just forget about the cache and return anyways */                  /* just forget about the cache and return anyways */
                 root->cr_ref--;                  root->cr_ref--;
         }          } else {
         else {  
                 cvs_rcache = (struct cvsroot **)tmp;                  cvs_rcache = (struct cvsroot **)tmp;
                 cvs_rcache[cvs_rcsz++] = root;                  cvs_rcache[cvs_rcsz++] = root;
         }          }
Line 278 
Line 276 
                                 return cvsroot_parse(rootstr);                                  return cvsroot_parse(rootstr);
                         else                          else
                                 return (NULL);                                  return (NULL);
                 }                  } else {
                 else {  
                         cvs_log(LP_ERRNO, "failed to open CVS/Root");                          cvs_log(LP_ERRNO, "failed to open CVS/Root");
                         return (NULL);                          return (NULL);
                 }                  }
Line 295 
Line 292 
         len = strlen(line);          len = strlen(line);
         if (len == 0) {          if (len == 0) {
                 cvs_log(LP_WARN, "empty CVS/Root file");                  cvs_log(LP_WARN, "empty CVS/Root file");
         }          } else if (line[len - 1] == '\n')
         else if (line[len - 1] == '\n')  
                 line[--len] = '\0';                  line[--len] = '\0';
   
         return cvsroot_parse(line);          return cvsroot_parse(line);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12