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

Diff for /src/usr.bin/cvs/cvs.c between version 1.99 and 1.100

version 1.99, 2006/05/27 18:04:46 version 1.100, 2006/05/27 18:18:06
Line 115 
Line 115 
         struct cvs_cmd *cmdp;          struct cvs_cmd *cmdp;
         struct passwd *pw;          struct passwd *pw;
         struct stat st;          struct stat st;
           char fpath[MAXPATHLEN];
   
         tzset();          tzset();
   
Line 225 
Line 226 
   
         if (current_cvsroot->cr_method != CVS_METHOD_LOCAL)          if (current_cvsroot->cr_method != CVS_METHOD_LOCAL)
                 fatal("remote setups are not supported yet");                  fatal("remote setups are not supported yet");
   
           i = snprintf(fpath, sizeof(fpath), "%s/%s", current_cvsroot->cr_dir,
               CVS_PATH_ROOT);
           if (stat(fpath, &st) == -1) {
                   if (errno == ENOENT)
                           fatal("'%s' does not seem to be a valid repository",
                               current_cvsroot->cr_dir);
                   else
                           fatal("%s: %s", current_cvsroot->cr_dir,
                               strerror(errno));
           } else {
                   if (!S_ISDIR(st.st_mode))
                           fatal("'%s' is not a directory",
                               current_cvsroot->cr_dir);
           }
   
         cvs_parse_configfile();          cvs_parse_configfile();
   

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100