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

Diff for /src/usr.bin/cvs/file.c between version 1.109 and 1.110

version 1.109, 2005/07/29 17:04:42 version 1.110, 2005/07/30 21:16:17
Line 153 
Line 153 
                 if (ifp == NULL) {                  if (ifp == NULL) {
                         if (errno != ENOENT)                          if (errno != ENOENT)
                                 cvs_log(LP_ERRNO,                                  cvs_log(LP_ERRNO,
                                     "failed to open user's cvsignore", path);                                      "failed to open user's cvsignore file "
                                       "`%s'", path);
                 } else {                  } else {
                         while (fgets(buf, sizeof(buf), ifp) != NULL) {                          while (fgets(buf, sizeof(buf), ifp) != NULL) {
                                 len = strlen(buf);                                  len = strlen(buf);
Line 251 
Line 252 
         int fd, l;          int fd, l;
         char fp[MAXPATHLEN], repo[MAXPATHLEN];          char fp[MAXPATHLEN], repo[MAXPATHLEN];
         CVSFILE *cfp;          CVSFILE *cfp;
         CVSENTRIES *ent;  
   
         cfp = cvs_file_alloc(path, type);          cfp = cvs_file_alloc(path, type);
         if (cfp == NULL)          if (cfp == NULL)
Line 294 
Line 294 
                     (cvs_mkadmin(path, cfp->cf_root->cr_str, cfp->cf_repo) < 0)) {                      (cvs_mkadmin(path, cfp->cf_root->cr_str, cfp->cf_repo) < 0)) {
                         cvs_file_free(cfp);                          cvs_file_free(cfp);
                         return (NULL);                          return (NULL);
                 }  
   
                 ent = cvs_ent_open(path, O_RDWR);  
                 if (ent != NULL) {  
                         cvs_ent_close(ent);  
                 }                  }
         } else {          } else {
                 fd = open(path, O_WRONLY|O_CREAT|O_EXCL, mode);                  fd = open(path, O_WRONLY|O_CREAT|O_EXCL, mode);

Legend:
Removed from v.1.109  
changed lines
  Added in v.1.110