[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.55 and 1.56

version 1.55, 2006/12/04 09:46:27 version 1.56, 2006/12/04 09:51:21
Line 54 
Line 54 
 int  int
 cvs_import(int argc, char **argv)  cvs_import(int argc, char **argv)
 {  {
         int ch, l;          int ch;
         char repo[MAXPATHLEN], *arg = ".";          char repo[MAXPATHLEN], *arg = ".";
         struct cvs_recursion cr;          struct cvs_recursion cr;
   
Line 88 
Line 88 
         vendor_tag = argv[1];          vendor_tag = argv[1];
         release_tag = argv[2];          release_tag = argv[2];
   
         l = snprintf(repo, sizeof(repo), "%s/%s", current_cvsroot->cr_dir,          if (cvs_path_cat(current_cvsroot->cr_dir, import_repository,
             import_repository);              repo, sizeof(repo)) >= sizeof(repo))
         if (l == -1 || l >= (int)sizeof(repo))                  fatal("cvs_import: truncation");
                 fatal("cvs_import: overflow");  
   
         if (cvs_noexec != 1) {          if (cvs_noexec != 1) {
                 if (mkdir(repo, 0755) == -1 && errno != EEXIST)                  if (mkdir(repo, 0755) == -1 && errno != EEXIST)

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56