summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2007-01-26 11:19:45 +0000
committerJoris Vink <joris@cvs.openbsd.org>2007-01-26 11:19:45 +0000
commit1a021ee8e2e3af50c1309ca1a10e7c21f6fecb21 (patch)
treedcefc84c1e112d415f48248594059823dc404b10 /usr.bin/cvs/rcs.c
parent793debffbb0046c0a6a428b9732013b47618b284 (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/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 926bc28e380..2de6a08c313 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.203 2007/01/25 19:32:56 otto Exp $ */
+/* $OpenBSD: rcs.c,v 1.204 2007/01/26 11:19:44 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -2540,7 +2540,7 @@ rcs_rev_getdate(RCSFILE *rfp, RCSNUM *rev)
if ((rdp = rcs_findrev(rfp, rev)) == NULL)
return (-1);
- return (mktime(&rdp->rd_date));
+ return (timegm(&rdp->rd_date));
}
/*