[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.146 and 1.147

version 1.146, 2008/06/14 03:19:15 version 1.147, 2008/06/21 15:39:15
Line 41 
Line 41 
   
 #include "cvs.h"  #include "cvs.h"
 #include "remote.h"  #include "remote.h"
   #include "hash.h"
   
 extern int print_stdout;  extern int print_stdout;
 extern int build_dirs;  extern int build_dirs;
Line 525 
Line 526 
         FILE *fp;          FILE *fp;
         int fd;          int fd;
         char buf[MAXPATHLEN];          char buf[MAXPATHLEN];
           struct hash_data *hdata, hd;
   
           hdata = hash_table_find(&created_cvs_directories, path, strlen(path));
           if (hdata != NULL)
                   return;
   
           hd.h_key = xstrdup(path);
           hd.h_data = NULL;
           hash_table_enter(&created_cvs_directories, &hd);
   
         if (cvs_server_active == 0)          if (cvs_server_active == 0)
                 cvs_log(LP_TRACE, "cvs_mkadmin(%s, %s, %s, %s, %s)",                  cvs_log(LP_TRACE, "cvs_mkadmin(%s, %s, %s, %s, %s)",
                     path, root, repo, (tag != NULL) ? tag : "",                      path, root, repo, (tag != NULL) ? tag : "",
Line 578 
Line 588 
         CVSENTRIES *ent;          CVSENTRIES *ent;
         FILE *fp;          FILE *fp;
         size_t len;          size_t len;
           struct hash_data *hdata, hd;
         char *entry, sticky[CVS_REV_BUFSZ];          char *entry, sticky[CVS_REV_BUFSZ];
         char *sp, *dp, *dir, *p, rpath[MAXPATHLEN], repo[MAXPATHLEN];          char *sp, *dp, *dir, *p, rpath[MAXPATHLEN], repo[MAXPATHLEN];
   
           hdata = hash_table_find(&created_directories, path, strlen(path));
           if (hdata != NULL)
                   return;
   
           hd.h_key = xstrdup(path);
           hd.h_data = NULL;
           hash_table_enter(&created_directories, &hd);
   
         if (current_cvsroot->cr_method != CVS_METHOD_LOCAL ||          if (current_cvsroot->cr_method != CVS_METHOD_LOCAL ||
             cvs_server_active == 1)              cvs_server_active == 1)

Legend:
Removed from v.1.146  
changed lines
  Added in v.1.147