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

Diff for /src/usr.bin/cvs/add.c between version 1.61 and 1.62

version 1.61, 2006/10/31 15:23:40 version 1.62, 2006/12/04 09:51:21
Line 143 
Line 143 
                 /* Let's see if we have any per-directory tags first. */                  /* Let's see if we have any per-directory tags first. */
                 cvs_parse_tagfile(cf->file_wd, &tag, &date, &nb);                  cvs_parse_tagfile(cf->file_wd, &tag, &date, &nb);
   
                 l = snprintf(entry, MAXPATHLEN, "%s/%s", cf->file_path,                  if (cvs_path_cat(cf->file_path, CVS_PATH_CVSDIR,
                     CVS_PATH_CVSDIR);                      entry, MAXPATHLEN) >= MAXPATHLEN)
                 if (l == -1 || l >= MAXPATHLEN)                          fatal("add_directory: truncation");
                         fatal("add_directory: overflow");  
   
                 if (stat(entry, &st) != -1) {                  if (stat(entry, &st) != -1) {
                         if (!S_ISDIR(st.st_mode)) {                          if (!S_ISDIR(st.st_mode)) {
Line 167 
Line 166 
                         cvs_get_repository_name(cf->file_wd, repo,                          cvs_get_repository_name(cf->file_wd, repo,
                             MAXPATHLEN);                              MAXPATHLEN);
   
                         l = snprintf(entry, MAXPATHLEN, "%s/%s", repo,                          if (cvs_path_cat(repo, cf->file_name, entry,
                             cf->file_name);                              MAXPATHLEN) >= MAXPATHLEN)
                                   fatal("add_directory: truncation");
   
                         cvs_mkadmin(cf->file_path, current_cvsroot->cr_dir,                          cvs_mkadmin(cf->file_path, current_cvsroot->cr_dir,
                             entry, tag, date, nb);                              entry, tag, date, nb);

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62