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

Diff for /src/usr.bin/cvs/Attic/repo.c between version 1.2 and 1.3

version 1.2, 2005/04/15 08:23:17 version 1.3, 2005/04/16 20:05:05
Line 473 
Line 473 
 static CVSRPENT*  static CVSRPENT*
 cvs_repo_loadrec(CVSREPO *repo, const char *path)  cvs_repo_loadrec(CVSREPO *repo, const char *path)
 {  {
         int ret, fd;          int ret, fd, l;
         long base;          long base;
         u_char *dp, *ep;          u_char *dp, *ep;
         mode_t fmode;          mode_t fmode;
Line 569 
Line 569 
                                     (ent->d_name[1] == '.')))                                      (ent->d_name[1] == '.')))
                                         continue;                                          continue;
   
                                 snprintf(pbuf, sizeof(pbuf), "%s/%s", path,                                  l = snprintf(pbuf, sizeof(pbuf), "%s/%s", path,
                                     ent->d_name);                                      ent->d_name);
                                   if (l == -1 || l >= (int)sizeof(pbuf)) {
                                           errno = ENAMETOOLONG;
                                           cvs_log(LP_ERRNO, "%s", pbuf);
   
                                           cvs_repo_entree(cfp);
                                           (void)close(fd);
                                           return (NULL);
                                   }
   
                                 if ((ent->d_type != DT_DIR) &&                                  if ((ent->d_type != DT_DIR) &&
                                     (ent->d_type != DT_REG)) {                                      (ent->d_type != DT_REG)) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3