[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.42 and 1.43

version 1.42, 2006/01/02 08:11:56 version 1.43, 2006/04/14 02:45:35
Line 175 
Line 175 
          * these files.           * these files.
          */           */
         error = 0;          error = 0;
         if ((cmd->cmd_op != CVS_OP_CHECKOUT) &&          if (cmd->cmd_op != CVS_OP_CHECKOUT &&
             (cmd->cmd_op != CVS_OP_EXPORT) &&              cmd->cmd_op != CVS_OP_EXPORT &&
             (cmd->cmd_op != CVS_OP_IMPORT) &&              cmd->cmd_op != CVS_OP_IMPORT &&
             (cmd->cmd_op != CVS_OP_INIT) &&              cmd->cmd_op != CVS_OP_INIT &&
             (cmd->cmd_op != CVS_OP_RELEASE) &&              cmd->cmd_op != CVS_OP_RELEASE &&
             (cmd->cmd_op != CVS_OP_VERSION)) {              cmd->cmd_op != CVS_OP_VERSION) {
                 /* check for the CVS directory */                  /* check for the CVS directory */
                 ret = stat(CVS_PATH_CVSDIR, &st);                  ret = stat(CVS_PATH_CVSDIR, &st);
                 if (((ret == -1) && (errno == ENOENT)) || ((ret != -1) &&                  if ((ret == -1 && errno == ENOENT) ||
                     !(S_ISDIR(st.st_mode))))                      (ret != -1 && !(S_ISDIR(st.st_mode))))
                         error |= MISSING_CVS_DIR;                          error |= MISSING_CVS_DIR;
   
                 /* check if the CVS/Entries file exists */                  /* check if the CVS/Entries file exists */
                 ret = stat(CVS_PATH_ENTRIES, &st);                  ret = stat(CVS_PATH_ENTRIES, &st);
                 if (((ret == -1) && (errno == ENOENT)) || ((ret != -1) &&                  if ((ret == -1 && errno == ENOENT) ||
                     !(S_ISREG(st.st_mode))))                      (ret != -1 && !(S_ISREG(st.st_mode))))
                         error |= MISSING_CVS_ENTRIES;                          error |= MISSING_CVS_ENTRIES;
   
                 /* check if the CVS/Repository file exists */                  /* check if the CVS/Repository file exists */
                 ret = stat(CVS_PATH_REPOSITORY, &st);                  ret = stat(CVS_PATH_REPOSITORY, &st);
                 if (((ret == -1) && (errno == ENOENT)) || ((ret != -1) &&                  if ((ret == -1 && errno == ENOENT) ||
                     !(S_ISREG(st.st_mode))))                      (ret != -1 && !(S_ISREG(st.st_mode))))
                         error |= MISSING_CVS_REPO;                          error |= MISSING_CVS_REPO;
         }          }
   

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43