From owner-freebsd-bugs Sat Oct 12 1: 0:14 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AA0437B406 for ; Sat, 12 Oct 2002 01:00:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A9B743EB7 for ; Sat, 12 Oct 2002 01:00:10 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9C80ACo091036 for ; Sat, 12 Oct 2002 01:00:10 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9C809Yt091035; Sat, 12 Oct 2002 01:00:09 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6D7A37B401 for ; Sat, 12 Oct 2002 00:55:07 -0700 (PDT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id A575043E91 for ; Sat, 12 Oct 2002 00:55:07 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g9C7sH7R004814 for ; Sat, 12 Oct 2002 00:54:17 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.6/8.12.6/Submit) id g9C7sHGV004813; Sat, 12 Oct 2002 00:54:17 -0700 (PDT) Message-Id: <200210120754.g9C7sHGV004813@www.freebsd.org> Date: Sat, 12 Oct 2002 00:54:17 -0700 (PDT) From: Zong Li To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/43957: The "date" command takes invalid input when it is used to set system date or clock. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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