[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.16 and 1.17

version 1.16, 2005/07/22 16:27:29 version 1.17, 2005/07/23 10:59:47
Line 176 
Line 176 
                                 cvs_log(LP_ERRNO, "cannot get current dir");                                  cvs_log(LP_ERRNO, "cannot get current dir");
   
                         /* change dir before running the `cvs update' command */                          /* change dir before running the `cvs update' command */
                         if (chdir(dpath) == -1) {                          if (cvs_chdir(dpath) == -1)
                                 cvs_log(LP_ERRNO, "cannot change to dir `%s'",  
                                     dpath);  
                                 return (CVS_EX_FILE);                                  return (CVS_EX_FILE);
                         }  
   
                         /* construct `cvs update' command */                          /* construct `cvs update' command */
                         l = snprintf(updcmd, sizeof(updcmd), "%s %s %s update",                          l = snprintf(updcmd, sizeof(updcmd), "%s %s %s update",
Line 222 
Line 219 
                         }                          }
   
                         /* change back to original working dir */                          /* change back to original working dir */
                         if (chdir(wdir) == -1) {                          if (cvs_chdir(wdir) == -1)
                                 cvs_log(LP_ERRNO, "cannot change to original "  
                                     "working dir `%s'", wdir);  
                                 return (CVS_EX_FILE);                                  return (CVS_EX_FILE);
                         }  
   
                         if (dflag == 1) {                          if (dflag == 1) {
                                 if (!cvs_noexec && cvs_remove_dir(dpath) != 0) {                                  if (!cvs_noexec && cvs_remove_dir(dpath) != 0) {

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17