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

Diff for /src/usr.bin/cvs/util.c between version 1.51 and 1.52

version 1.51, 2005/09/05 19:29:42 version 1.52, 2005/09/15 17:01:10
Line 419 
Line 419 
  * Returns 0 on success, or -1 on failure.   * Returns 0 on success, or -1 on failure.
  */   */
 int  int
 cvs_mkadmin(const char *dpath, const char *rootpath, const char *repopath)  cvs_mkadmin(const char *dpath, const char *rootpath, const char *repopath,
       char *tag, char *date, int nb)
 {  {
         size_t l;          size_t l;
         char path[MAXPATHLEN];          char path[MAXPATHLEN];
Line 427 
Line 428 
         CVSENTRIES *ef;          CVSENTRIES *ef;
         struct stat st;          struct stat st;
   
           cvs_log(LP_TRACE, "cvs_mkadmin(%s, %s, %s, %s, %s, %d)",
               dpath, rootpath, repopath, tag ? tag : "", date ? date : "", nb);
   
         l = cvs_path_cat(dpath, CVS_PATH_CVSDIR, path, sizeof(path));          l = cvs_path_cat(dpath, CVS_PATH_CVSDIR, path, sizeof(path));
         if (l >= sizeof(path))          if (l >= sizeof(path))
                 return (-1);                  return (-1);
Line 471 
Line 475 
                 (void)fclose(fp);                  (void)fclose(fp);
         }          }
   
           /* create CVS/Tag file (if needed) */
           (void)cvs_write_tagfile(tag, date, nb);
   
         return (0);          return (0);
 }  }
   
Line 674 
Line 681 
                         if (l >= sizeof(rpath))                          if (l >= sizeof(rpath))
                                 goto done;                                  goto done;
   
                         if (cvs_mkadmin(d, root, rpath) < 0) {                          if (cvs_mkadmin(d, root, rpath, NULL, NULL, 0) < 0) {
                                 cvs_log(LP_ERR, "failed to create adm files");                                  cvs_log(LP_ERR, "failed to create adm files");
                                 goto done;                                  goto done;
                         }                          }

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