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

Diff for /src/usr.bin/cvs/release.c between version 1.23 and 1.24

version 1.23, 2005/10/07 21:47:32 version 1.24, 2005/12/22 14:31:44
Line 161 
Line 161 
                         return (0);                          return (0);
   
                 /* chdir before running the `cvs update' command */                  /* chdir before running the `cvs update' command */
                 if (cvs_chdir(dpath) == -1)                  cvs_chdir(dpath);
                         return (CVS_EX_FILE);  
   
                 /* test if dir has CVS/ directory */                  /* test if dir has CVS/ directory */
                 if (stat(CVS_PATH_CVSDIR, &st) == -1) {                  if (stat(CVS_PATH_CVSDIR, &st) == -1) {
Line 200 
Line 199 
                 cvs_log(LP_ERR, "unable to release `%s'", dpath);                  cvs_log(LP_ERR, "unable to release `%s'", dpath);
   
                 /* change back to original working dir */                  /* change back to original working dir */
                 if (cvs_chdir(wdir) == -1)                  cvs_chdir(wdir);
                         return (CVS_EX_FILE);  
         }          }
   
         printf("You have [%d] altered file%s in this repository.\n",          printf("You have [%d] altered file%s in this repository.\n",
Line 220 
Line 218 
                     "** `%s' aborted by user choice.\n", cvs_command);                      "** `%s' aborted by user choice.\n", cvs_command);
   
                 /* change back to original working dir */                  /* change back to original working dir */
                 if (cvs_chdir(wdir) == -1)                  cvs_chdir(wdir);
                         return (CVS_EX_FILE);  
   
                 return (-1);                  return (-1);
         }          }
   
         /* change back to original working dir */          /* change back to original working dir */
         if (cvs_chdir(wdir) == -1)          cvs_chdir(wdir);
                 return (CVS_EX_FILE);  
   
         if (dflag == 1) {          if (dflag == 1) {
                 if (cvs_rmdir(dpath) != 0)                  if (cvs_rmdir(dpath) != 0)

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24