From f49c8e8257dbe844b8ded15b087c7cdbe52da67e Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 12 Dec 2007 23:47:57 +0000 Subject: [PATCH] Fix bug in as-of mount date specification. --- sbin/mount_hammer/mount_hammer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/mount_hammer/mount_hammer.c b/sbin/mount_hammer/mount_hammer.c index 571e82f1b1..135c42eb1e 100644 --- a/sbin/mount_hammer/mount_hammer.c +++ b/sbin/mount_hammer/mount_hammer.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sbin/mount_hammer/mount_hammer.c,v 1.2 2007/11/30 00:16:54 dillon Exp $ + * $DragonFly: src/sbin/mount_hammer/mount_hammer.c,v 1.3 2007/12/12 23:47:57 dillon Exp $ */ #include @@ -183,7 +183,7 @@ hammer_parsetime(u_int64_t *tidp, const char *timestr) &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &seconds); tm.tm_mon += 1; - tm.tm_year += 19000; + tm.tm_year += 1900; tm.tm_sec = (int)seconds; t = mktime(&tm); } -- 2.41.0