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

Diff for /src/usr.bin/cvs/import.c between version 1.66 and 1.67

version 1.66, 2007/01/20 01:07:51 version 1.67, 2007/01/31 21:07:35
Line 145 
Line 145 
 void  void
 cvs_import_local(struct cvs_file *cf)  cvs_import_local(struct cvs_file *cf)
 {  {
         int l;  
         int isnew;          int isnew;
         struct stat st;          struct stat st;
         char repo[MAXPATHLEN];          char repo[MAXPATHLEN];
Line 172 
Line 171 
         }          }
   
         isnew = 1;          isnew = 1;
         l = snprintf(repo, sizeof(repo), "%s/%s/%s/%s%s",          (void)xsnprintf(repo, sizeof(repo), "%s/%s/%s/%s%s",
             current_cvsroot->cr_dir, cf->file_wd, CVS_PATH_ATTIC,              current_cvsroot->cr_dir, cf->file_wd, CVS_PATH_ATTIC,
             cf->file_name, RCS_FILE_EXT);              cf->file_name, RCS_FILE_EXT);
         if (l == -1 || l >= (int)sizeof(repo))  
                 fatal("import_new: overflow");  
   
         if (cf->file_rcs != NULL || stat(repo, &st) != -1)          if (cf->file_rcs != NULL || stat(repo, &st) != -1)
                 isnew = 0;                  isnew = 0;

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67