From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Nov 13 11:20:18 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A5DB16A420 for ; Sun, 13 Nov 2005 11:20:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AFF443D46 for ; Sun, 13 Nov 2005 11:20:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jADBKH6U055575 for ; Sun, 13 Nov 2005 11:20:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jADBKHWf055574; Sun, 13 Nov 2005 11:20:17 GMT (envelope-from gnats) Resent-Date: Sun, 13 Nov 2005 11:20:17 GMT Resent-Message-Id: <200511131120.jADBKHWf055574@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Pogrebennyk Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B6AC16A41F for ; Sun, 13 Nov 2005 11:18:19 +0000 (GMT) (envelope-from andrew.nau.ua@gmail.com) Received: from el.volia.net (el.volia.net [82.144.192.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F3C443D46 for ; Sun, 13 Nov 2005 11:18:19 +0000 (GMT) (envelope-from andrew.nau.ua@gmail.com) Received: from ip.85.202.176.36.dyn.sub-9.broadband.voliacable.com ([85.202.176.36] helo=darkstar.voliacable.com) by el.volia.net with esmtp (Exim 4.43 (FreeBSD)) id 1EbFsH-000HYN-6z for FreeBSD-gnats-submit@freebsd.org; Sun, 13 Nov 2005 13:18:17 +0200 Received: from andrew by darkstar.voliacable.com with local (Exim 4.54 (FreeBSD)) id 1EbFsO-0001vs-Va for FreeBSD-gnats-submit@freebsd.org; Sun, 13 Nov 2005 13:18:24 +0200 Message-Id: Date: Sun, 13 Nov 2005 13:18:24 +0200 From: Andrew Pogrebennyk To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/88916: [maintainer] x11-fm/filerunner: fixed modulo year = 00xx in file dates X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrew Pogrebennyk List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2005 11:20:18 -0000 >Number: 88916 >Category: ports >Synopsis: [maintainer] x11-fm/filerunner: fixed modulo year = 00xx in file dates >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Nov 13 11:20:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Andrew Pogrebennyk >Release: FreeBSD 6.0-STABLE i386 >Organization: University >Environment: System: FreeBSD darkstar.voliacable.com 6.0-STABLE FreeBSD 6.0-STABLE #0: Thu Nov 3 19:37:52 EET 2005 andrew@darkstar.voliacable.com:/usr/obj/usr/src/sys/NEUTRINO i386 >Description: Fixed modulo year = 00xx instead of 20xx in file dates PR: ports/88452 Submitted by: User1001 >How-To-Repeat: >Fix: --- patch begins here --- diff -ruN filerunner.old/files/patch-ac filerunner/files/patch-ac --- filerunner.old/files/patch-ac Thu Oct 13 05:35:35 2005 +++ filerunner/files/patch-ac Sun Nov 13 12:55:35 2005 @@ -1,5 +1,5 @@ ---- ext.c.orig Wed Oct 12 18:22:46 2005 -+++ ext.c Wed Oct 12 18:22:22 2005 +--- ext.c.orig Sun Nov 13 12:52:16 2005 ++++ ext.c Sun Nov 13 12:52:57 2005 @@ -123,11 +123,12 @@ HANDLE2(*p != '\0', "Error converting arg to int"); @@ -7,11 +7,12 @@ + time_s->tm_year = 1900 + time_s->tm_year; if (dateformat) - sprintf(interp->result, "%02d%02d%02d %02d:%02d:%02d", time_s->tm_mday, time_s->tm_mon+1, +- time_s->tm_year % 100, time_s->tm_hour, time_s->tm_min, time_s->tm_sec); + sprintf(interp->result, "%02d%02d%04d %02d:%02d:%02d", time_s->tm_mday, time_s->tm_mon+1, - time_s->tm_year % 100, time_s->tm_hour, time_s->tm_min, time_s->tm_sec); ++ time_s->tm_year, time_s->tm_hour, time_s->tm_min, time_s->tm_sec); else - sprintf(interp->result, "%02d%02d%02d %02d:%02d:%02d", time_s->tm_year % 100, time_s->tm_mon+1, -+ sprintf(interp->result, "%04d%02d%02d %02d:%02d:%02d", time_s->tm_year % 100, time_s->tm_mon+1, ++ sprintf(interp->result, "%04d%02d%02d %02d:%02d:%02d", time_s->tm_year, time_s->tm_mon+1, time_s->tm_mday, time_s->tm_hour, time_s->tm_min, time_s->tm_sec); return TCL_OK; } --- patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: