version 1.61, 2006/06/06 06:58:46 |
version 1.62, 2006/06/14 20:28:53 |
|
|
|
|
if (exists == 0) { |
if (exists == 0) { |
rcstime = rcs_rev_getdate(cf->file_rcs, rnum); |
rcstime = rcs_rev_getdate(cf->file_rcs, rnum); |
if ((rcstime = cvs_hack_time(rcstime, 0)) == 0) |
rcstime = cvs_hack_time(rcstime, 0); |
fatal("cvs_checkout_file: time conversion failed"); |
|
} else { |
} else { |
time(&rcstime); |
time(&rcstime); |
} |
} |
|
|
if (futimes(cf->fd, tv) == -1) |
if (futimes(cf->fd, tv) == -1) |
fatal("cvs_checkout_file: futimes: %s", strerror(errno)); |
fatal("cvs_checkout_file: futimes: %s", strerror(errno)); |
|
|
if ((rcstime = cvs_hack_time(rcstime, 1)) == 0) |
rcstime = cvs_hack_time(rcstime, 1); |
fatal("cvs_checkout_file: to gmt failed"); |
|
|
|
ctime_r(&rcstime, tbuf); |
ctime_r(&rcstime, tbuf); |
if (tbuf[strlen(tbuf) - 1] == '\n') |
if (tbuf[strlen(tbuf) - 1] == '\n') |