diff options
author | 2009-02-23 21:28:57 +0000 | |
---|---|---|
committer | 2009-02-23 21:28:57 +0000 | |
commit | c61000bd839b64e21918b028e2e752f514d1338c (patch) | |
tree | 507fdc23a707e896a0ca9abb22799843484f1ca9 | |
parent | dont put pfsync packets on the wire if no syncdev is specified. issues (diff) | |
download | wireguard-openbsd-c61000bd839b64e21918b028e2e752f514d1338c.tar.xz wireguard-openbsd-c61000bd839b64e21918b028e2e752f514d1338c.zip |
Properly convert between gmt and localtime for unchanged files as client.
Problem reported by Jesus Sanchez (zexel08 at gmail dot com).
ok joris
-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) { |