[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.90 and 1.91

version 1.90, 2006/07/09 01:47:20 version 1.91, 2006/10/11 22:00:22
Line 694 
Line 694 
   
         if (cvs_cmdop == CVS_OP_UPDATE) {          if (cvs_cmdop == CVS_OP_UPDATE) {
                 if ((fp = fopen(CVS_PATH_REPOSITORY, "r")) != NULL) {                  if ((fp = fopen(CVS_PATH_REPOSITORY, "r")) != NULL) {
                         fgets(repo, sizeof(repo), fp);                          if ((fgets(repo, sizeof(repo), fp)) == NULL)
                         if (repo[strlen(repo) - 1] == '\n')                                  fatal("cvs_mkpath: bad repository file");
                                 repo[strlen(repo) - 1] = '\0';                          if ((len = strlen(repo)) && repo[len - 1] == '\n')
                                   repo[len - 1] = '\0';
                         (void)fclose(fp);                          (void)fclose(fp);
                 }                  }
         }          }

Legend:
Removed from v.1.90  
changed lines
  Added in v.1.91