Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Oct 2002 00:54:17 -0700 (PDT)
From:      Zong Li <zong.li@attbi.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/43957: The "date" command takes invalid input when it is used to set system date or clock.
Message-ID:  <200210120754.g9C7sHGV004813@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         43957
>Category:       misc
>Synopsis:       The "date" command takes invalid input when it is used to set system date or clock.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 12 01:00:09 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Zong Li
>Release:        FreeBSD 4.6-RELEASE
>Organization:
Redlinenetworks
>Environment:
FreeBSD 4.6-RELEASE FreeBSD 4.6-RELEASE #2: Mon Jul 15 11:30:11 PDT 2002     root@FreeBSD:/usr/src/sys/compile/MYKERNEL  i386

>Description:
Due to some date input formats simply use numbers (02 for Feb., 08 for Aug. etc.), a typo in date input may cause the system set to an incorrect date. This may cause some confusion or potential problem in applications that tightly relied or related to system date/clock settings.
>How-To-Repeat:
If I want to set the system date/clock to be March 31, 2002, 12:45, but typoed as the following:
FreeBSD# date 0202311245
Sun Mar  3 12:45:00 PST 2002 <<<< It was set to March 3, 2002.
FreeBSD# date 0211311245   <<< typoed Dec. (12) as Nov (11)
Sun Dec  1 12:45:00 PST 2002 
FreeBSD# date
Sun Dec  1 12:45:05 PST 2002  <<<< It was set to Dec 1, 2002.
FreeBSD# 

>Fix:
      
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210120754.g9C7sHGV004813>