diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2007-01-26 11:19:45 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2007-01-26 11:19:45 +0000 |
commit | 1a021ee8e2e3af50c1309ca1a10e7c21f6fecb21 (patch) | |
tree | dcefc84c1e112d415f48248594059823dc404b10 /usr.bin/cvs/client.c | |
parent | 793debffbb0046c0a6a428b9732013b47618b284 (diff) |
Handle CVS/Entries and file timestamp correctly so we do
not mistakenly see a file as Modified while it is not.
As a result, we can remove the very hackish cvs_hack_time() and
GNU cvs and opencvs should almost get along now.
lotsa help and okay The otto@
Diffstat (limited to 'usr.bin/cvs/client.c')
-rw-r--r-- | usr.bin/cvs/client.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c index e9411fcef50..01ae9a8a434 100644 --- a/usr.bin/cvs/client.c +++ b/usr.bin/cvs/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.51 2007/01/26 10:42:06 otto Exp $ */ +/* $OpenBSD: client.c,v 1.52 2007/01/26 11:19:44 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -646,8 +646,7 @@ cvs_client_updated(char *data) fmode &= ~mask; time(&now); - now = cvs_hack_time(now, 0); - ctime_r(&now, timebuf); + asctime_r(gmtime(&now), timebuf); if (timebuf[strlen(timebuf) - 1] == '\n') timebuf[strlen(timebuf) - 1] = '\0'; @@ -672,7 +671,6 @@ cvs_client_updated(char *data) cvs_remote_receive_file(fd, flen); - now = cvs_hack_time(now, 0); tv[0].tv_sec = now; tv[0].tv_usec = 0; tv[1] = tv[0]; |