diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2009-02-23 21:28:58 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2009-02-23 21:28:58 +0000 |
commit | 32bbc74a8d7222739fd008bd216ab8446454d7f8 (patch) | |
tree | 6b9246c1af69a34b2360cbe380cdab9e797c9620 /usr.bin/cvs | |
parent | e89a47d9e1af09e618fc87d6bae915c66b982310 (diff) |
Properly convert between gmt and localtime for unchanged files as client.
Problem reported by Jesus Sanchez (zexel08 at gmail dot com).
ok joris
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c index 86437372f3c..7888bca34e7 100644 --- a/usr.bin/cvs/client.c +++ b/usr.bin/cvs/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.118 2009/02/21 14:50:53 joris Exp $ */ +/* $OpenBSD: client.c,v 1.119 2009/02/23 21:28:57 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -645,7 +645,8 @@ cvs_client_checkedin(char *data) if (len >= sizeof(timebuf)) fatal("cvs_client_sendfile: truncation"); } else { - ctime_r(&ent->ce_mtime, timebuf); + gmtime_r(&ent->ce_mtime, &datetm); + asctime_r(&datetm, timebuf); timebuf[strcspn(timebuf, "\n")] = '\0'; if (newent->ce_tag != NULL) { |