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

Diff for /src/usr.bin/cvs/checkout.c between version 1.44 and 1.45

version 1.44, 2006/01/02 08:11:56 version 1.45, 2006/01/25 12:16:13
Line 227 
Line 227 
                 cwdfd = dirfd(dirp);                  cwdfd = dirfd(dirp);
   
                 for (i = 0; i < co_nmod; i++) {                  for (i = 0; i < co_nmod; i++) {
                         snprintf(repo, sizeof(repo), "%s/%s", root->cr_dir,                          if (strlcpy(repo, root->cr_dir, sizeof(repo)) >=
                             co_mods[i]);                              sizeof(repo) ||
                               strlcat(repo, "/", sizeof(repo)) >= sizeof(repo) ||
                               strlcat(repo, co_mods[i], sizeof(repo)) >=
                               sizeof(repo))
                                   fatal("cvs_checkout_pre_exec: path truncation");
   
                         currepo = co_mods[i];                          currepo = co_mods[i];
                         ret = cvs_file_get(repo, CF_RECURSE | CF_REPO |                          ret = cvs_file_get(repo, CF_RECURSE | CF_REPO |
                             CF_IGNORE, cvs_checkout_local, NULL, NULL);                              CF_IGNORE, cvs_checkout_local, NULL, NULL);
Line 303 
Line 308 
         }          }
   
         root = CVS_DIR_ROOT(cf);          root = CVS_DIR_ROOT(cf);
         cvs_file_getpath(cf, fpath, sizeof(fpath));  
   
         snprintf(rcspath, sizeof(rcspath), "%s/%s%s", root->cr_dir,          cvs_file_getpath(cf, fpath, sizeof(fpath));
             fpath, RCS_FILE_EXT);          cvs_rcs_getpath(cf, rcspath, sizeof(rcspath));
   
         if (cf->cf_type == DT_DIR) {          if (cf->cf_type == DT_DIR) {
                 inattic = 0;                  inattic = 0;

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45