Date: Sun, 13 Nov 2005 13:18:24 +0200 From: Andrew Pogrebennyk <andrew.nau.ua@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/88916: [maintainer] x11-fm/filerunner: fixed modulo year = 00xx in file dates Message-ID: <E1EbFsO-0001vs-Va@darkstar.voliacable.com> Resent-Message-ID: <200511131120.jADBKHWf055574@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <supraexpress@globaleyes.net> >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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1EbFsO-0001vs-Va>