[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.51 and 1.52

version 1.51, 2006/03/24 13:34:27 version 1.52, 2006/04/14 02:45:35
Line 155 
Line 155 
         co_mods = argv;          co_mods = argv;
         co_nmod = argc;          co_nmod = argc;
   
         if ((statmod == 0) && (argc == 0))          if (statmod == 0 && argc == 0)
                 fatal("must specify at least one module or directory");                  fatal("must specify at least one module or directory");
   
         if (statmod && (argc > 0))          if (statmod && (argc > 0))
Line 163 
Line 163 
   
         /* `export' command exceptions */          /* `export' command exceptions */
         if (cvs_cmdop == CVS_OP_EXPORT) {          if (cvs_cmdop == CVS_OP_EXPORT) {
                 if ((tag == NULL) && (date == NULL))                  if (tag == NULL && date == NULL)
                         fatal("must specify a tag or date");                          fatal("must specify a tag or date");
   
                 /* we don't want numerical revisions here */                  /* we don't want numerical revisions here */
                 if ((tag != NULL) && (rcsnum_parse(tag) != NULL))                  if (tag != NULL && rcsnum_parse(tag) != NULL)
                         fatal("tag `%s' must be a symbolic tag", tag);                          fatal("tag `%s' must be a symbolic tag", tag);
         }          }
   
Line 190 
Line 190 
                 if ((sp = strchr(co_mods[i], '/')) != NULL)                  if ((sp = strchr(co_mods[i], '/')) != NULL)
                         *sp = '\0';                          *sp = '\0';
   
                 if ((mkdir(co_mods[i], 0755) == -1) && (errno != EEXIST))                  if (mkdir(co_mods[i], 0755) == -1 && errno != EEXIST)
                         fatal("cvs_checkout_pre_exec: mkdir `%s': %s",                          fatal("cvs_checkout_pre_exec: mkdir `%s': %s",
                             co_mods[i], strerror(errno));                              co_mods[i], strerror(errno));
   
Line 283 
Line 283 
         static int inattic = 0;          static int inattic = 0;
   
         /* we don't want these */          /* we don't want these */
         if ((cf->cf_type == DT_DIR) && !strcmp(cf->cf_name, "Attic")) {          if (cf->cf_type == DT_DIR && !strcmp(cf->cf_name, "Attic")) {
                 inattic = 1;                  inattic = 1;
                 return (CVS_EX_OK);                  return (CVS_EX_OK);
         }          }

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52