From sjr@home.net Wed Apr 14 20:24:22 1999
Return-Path: <sjr@home.net>
Received: from istari.home.net (cc158233-a.catv1.md.home.com [24.3.25.17])
	by hub.freebsd.org (Postfix) with ESMTP id 909DD14D09
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 Apr 1999 20:24:21 -0700 (PDT)
	(envelope-from sjr@home.net)
Received: (from sjr@localhost)
	by istari.home.net (8.9.3/8.9.3) id XAA08561;
	Wed, 14 Apr 1999 23:22:00 -0400 (EDT)
	(envelope-from sjr)
Message-Id: <199904150322.XAA08561@istari.home.net>
Date: Wed, 14 Apr 1999 23:22:00 -0400 (EDT)
From: sjr@home.net
Reply-To: sjr@home.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: Y2K problem in tiff34 port
X-Send-Pr-Version: 3.2

>Number:         11144
>Category:       ports
>Synopsis:       Y2K problem in tiff34 port
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 14 20:30:01 PDT 1999
>Closed-Date:    Sun Apr 18 15:05:31 PDT 1999
>Last-Modified:  Sun Apr 18 15:05:45 PDT 1999
>Originator:     Stephen J. Roznowski
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

	The tiff port has a hardcoded 19xx. While this is in the
	contrib section (for converting Sun rasterfile format to
	TIFF), and not installed by default, this should be patched.

>How-To-Repeat:

	

>Fix:
	
--- contrib/ras/ras2tif.c.orig	Wed Apr 14 23:05:05 1999
+++ contrib/ras/ras2tif.c	Wed Apr 14 23:05:41 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:
State-Changed-From-To: open->closed 
State-Changed-By: jseger 
State-Changed-When: Sun Apr 18 15:05:31 PDT 1999 
State-Changed-Why:  
Committed, thanks. 
>Unformatted:
