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

Diff for /src/usr.bin/cvs/cmd.c between version 1.37 and 1.38

version 1.37, 2005/10/22 17:23:21 version 1.38, 2005/12/03 01:02:08
Line 38 
Line 38 
 #include "log.h"  #include "log.h"
 #include "proto.h"  #include "proto.h"
   
   extern char *cvs_rootstr;
   
 /*  /*
  * Command dispatch table   * Command dispatch table
Line 224 
Line 225 
   
         if (!(cmd->cmd_flags & CVS_CMD_ALLOWSPEC) && (argc > 0))          if (!(cmd->cmd_flags & CVS_CMD_ALLOWSPEC) && (argc > 0))
                 return (CVS_EX_USAGE);                  return (CVS_EX_USAGE);
   
           /*
            * This allows us to correctly fill in the repository
            * string for CVSFILE's fetched inside the repository itself.
            */
           if (cvs_cmdop == CVS_OP_SERVER) {
                   cvs_rootstr = strdup(root->cr_str);
                   if (cvs_rootstr == NULL)
                           return (CVS_EX_DATA);
           }
   
         cvs_log(LP_TRACE, "cvs_startcmd() CVSROOT=%s", root->cr_str);          cvs_log(LP_TRACE, "cvs_startcmd() CVSROOT=%s", root->cr_str);
   

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38