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

Diff for /src/usr.bin/cvs/history.c between version 1.29 and 1.30

version 1.29, 2007/06/20 16:25:46 version 1.30, 2007/06/28 04:48:52
Line 77 
Line 77 
         cvs_log(LP_TRACE, "cvs_history_add(`%c', `%s', `%s')",          cvs_log(LP_TRACE, "cvs_history_add(`%c', `%s', `%s')",
             historytab[type], (cf != NULL) ? cf->file_name : "", argument);              historytab[type], (cf != NULL) ? cf->file_name : "", argument);
   
         if ((cwd = getcwd(NULL, MAXPATHLEN)) == NULL)          if (cvs_server_active == 1) {
                 fatal("cvs_history_add: getcwd: %s", strerror(errno));                  cwd = "<remote>";
           } else {
                   if ((cwd = getcwd(NULL, MAXPATHLEN)) == NULL)
                           fatal("cvs_history_add: getcwd: %s", strerror(errno));
           }
   
         /* construct repository field */          /* construct repository field */
         if (cvs_cmdop != CVS_OP_CHECKOUT && cvs_cmdop != CVS_OP_EXPORT) {          if (cvs_cmdop != CVS_OP_CHECKOUT && cvs_cmdop != CVS_OP_EXPORT) {
Line 126 
Line 130 
                 cvs_log(LP_ERR, "failed to add entry to history file");                  cvs_log(LP_ERR, "failed to add entry to history file");
         }          }
   
         xfree(cwd);          if (cvs_server_active != 1)
                   xfree(cwd);
 }  }
   
 int  int

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30