From owner-freebsd-ports Wed Apr 14 20:52:26 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 4085C150EB for ; Wed, 14 Apr 1999 20:52:21 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id UAA33770; Wed, 14 Apr 1999 20:50:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from istari.home.net (cc158233-a.catv1.md.home.com [24.3.25.17]) by hub.freebsd.org (Postfix) with ESMTP id 04A26150EB for ; Wed, 14 Apr 1999 20:47:12 -0700 (PDT) (envelope-from sjr@home.net) Received: (from sjr@localhost) by istari.home.net (8.9.3/8.9.3) id XAA11574; Wed, 14 Apr 1999 23:44:51 -0400 (EDT) (envelope-from sjr) Message-Id: <199904150344.XAA11574@istari.home.net> Date: Wed, 14 Apr 1999 23:44:51 -0400 (EDT) From: sjr@home.net Reply-To: sjr@home.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/11145: Y2K problem in dgs port Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 11145 >Category: ports >Synopsis: Y2K problem in dgs port >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 14 20:50:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Stephen J. Roznowski >Release: FreeBSD 4.0-CURRENT i386 >Organization: >Environment: >Description: The dgs port suffers from the same TIFF related problem as the tiff port. [contrib routine for converting Sun rasterfiles to TIFF] >How-To-Repeat: >Fix: --- tiff/contrib/ras/ras2tif.c.orig Wed Apr 14 23:37:26 1999 +++ tiff/contrib/ras/ras2tif.c Wed Apr 14 23:37:52 1999 @@ -102,8 +102,8 @@ gettimeofday(&tv, (struct timezone *) NULL); ct = localtime(&tv.tv_sec); - sprintf(datetime, "19%02d:%02d:%02d %02d:%02d:%02d", - ct->tm_year, ct->tm_mon + 1, ct->tm_mday, + sprintf(datetime, "%04d:%02d:%02d %02d:%02d:%02d", + 1900 + ct->tm_year, ct->tm_mon + 1, ct->tm_mday, ct->tm_hour, ct->tm_min, ct->tm_sec); setbuf(stderr, NULL); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message