version 1.16, 2005/07/22 16:27:29 |
version 1.17, 2005/07/23 10:59:47 |
|
|
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", |
|
|
} |
} |
|
|
/* 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) { |