version 1.72, 2006/03/16 08:43:43 |
version 1.73, 2006/04/14 02:45:35 |
|
|
* at the end of the diff command, even for successfull |
* at the end of the diff command, even for successfull |
* diff. |
* diff. |
*/ |
*/ |
if ((strlen(line) == 1) && (*line == ' ')) |
if (strlen(line) == 1 && *line == ' ') |
return (1); |
return (1); |
|
|
fprintf(stderr, "%s\n", line); |
fprintf(stderr, "%s\n", line); |
|
|
} |
} |
|
|
if (cvs_noexec == 0) { |
if (cvs_noexec == 0) { |
if ((type == CVS_RESP_CLRSTATDIR) && |
if (type == CVS_RESP_CLRSTATDIR && |
(cvs_unlink(statpath) == -1)) { |
cvs_unlink(statpath) == -1) { |
return (-1); |
return (-1); |
} else if (type == CVS_RESP_SETSTATDIR) { |
} else if (type == CVS_RESP_SETSTATDIR) { |
fd = open(statpath, O_CREAT|O_TRUNC|O_WRONLY, 0644); |
fd = open(statpath, O_CREAT|O_TRUNC|O_WRONLY, 0644); |
|
|
} else |
} else |
ent->ce_mtime = time(&(ent->ce_mtime)); |
ent->ce_mtime = time(&(ent->ce_mtime)); |
|
|
if ((type == CVS_RESP_UPDEXIST) || (type == CVS_RESP_UPDATED) || |
if (type == CVS_RESP_UPDEXIST || type == CVS_RESP_UPDATED || |
(type == CVS_RESP_MERGED) || (type == CVS_RESP_CREATED)) { |
type == CVS_RESP_MERGED || type == CVS_RESP_CREATED) { |
if ((cvs_ent_remove(cvs_resp_lastent, ent->ce_name, 0) < 0) && |
if (cvs_ent_remove(cvs_resp_lastent, ent->ce_name, 0) < 0 && |
(type != CVS_RESP_CREATED)) { |
type != CVS_RESP_CREATED) { |
cvs_log(LP_WARN, "failed to remove entry for '%s`", |
cvs_log(LP_WARN, "failed to remove entry for '%s`", |
ent->ce_name); |
ent->ce_name); |
} |
} |
|
|
return (-1); |
return (-1); |
|
|
(void)cvs_ent_remove(cvs_resp_lastent, file, 0); |
(void)cvs_ent_remove(cvs_resp_lastent, file, 0); |
if ((type == CVS_RESP_REMOVED) && ((unlink(fpath) == -1) && |
if (type == CVS_RESP_REMOVED && |
errno != ENOENT)) { |
(unlink(fpath) == -1 && errno != ENOENT)) { |
cvs_log(LP_ERRNO, "failed to unlink `%s'", file); |
cvs_log(LP_ERRNO, "failed to unlink `%s'", file); |
return (-1); |
return (-1); |
} |
} |