From owner-freebsd-ports Wed Aug 19 09:30:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA10531 for freebsd-ports-outgoing; Wed, 19 Aug 1998 09:30:07 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA10513 for ; Wed, 19 Aug 1998 09:30:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id JAA29373; Wed, 19 Aug 1998 09:30:01 -0700 (PDT) Received: from lituussun (irc.ladapt.org [195.25.51.6]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA08783 for ; Wed, 19 Aug 1998 09:23:08 -0700 (PDT) (envelope-from root@smtp.wanadoo.fr) Received: from (sequoia.lituus.fr) [193.252.208.69] by lituussun with esmtp (Exim 1.82 #1) id 0z9Bs7-0003Zs-00; Wed, 19 Aug 1998 18:18:08 +0100 Received: (from root@localhost) by sequoia.lituus.fr (8.9.1/8.8.8) id RAA03673; Wed, 19 Aug 1998 17:51:34 +0200 (CEST) (envelope-from root) Message-Id: <199808191551.RAA03673@sequoia.lituus.fr> Date: Wed, 19 Aug 1998 17:51:34 +0200 (CEST) From: Stephane Legrand To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/7681: [PORTS] TkDesk 1.0 is not Y2K compliant Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7681 >Category: ports >Synopsis: [PORTS] TkDesk 1.0 is not Y2K compliant >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 19 09:30:01 PDT 1998 >Last-Modified: >Originator: Stephane Legrand >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: >Description: TkDesk 1.0 is not Y2K compliant. This is NOT only on FreeBSD and the bug is only a TkDesk one. The bug appears in the file list window. A file with a year date > 2000 is displayed with a year looking like "191xx" where xx is the two last number of the real date. The following patch (made by the TkDesk author) correct the problem : ---- In file dsk_ls.c, function file_time() there is the following code sequence: else { timestr[6] = '\0'; strcat (timestr, " 19"); strcat (timestr, itoa (filetm.tm_year)); } Obviously, that segment should be changed to something like the following: else { timestr[6] = '\0'; if (filetm.tm_year < 100) { strcat (timestr, " 19"); strcat (timestr, itoa (filetm.tm_year)); } else { filetm.tm_year -= 100; sprintf (timestr, "%s 20%02d", timestr, filetm.tm_year); } } ---- >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message