From owner-freebsd-bugs Mon Jul 23 9:20: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 438DA37B405 for ; Mon, 23 Jul 2001 09:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6NGK2484685; Mon, 23 Jul 2001 09:20:02 -0700 (PDT) (envelope-from gnats) Date: Mon, 23 Jul 2001 09:20:02 -0700 (PDT) Message-Id: <200107231620.f6NGK2484685@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Mike Barcroft Subject: Re: bin/18742: times.allow field parsed incorrectly Reply-To: Mike Barcroft 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 The following reply was made to PR bin/18742; it has been noted by GNATS. From: Mike Barcroft To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: bin/18742: times.allow field parsed incorrectly Date: Mon, 23 Jul 2001 12:34:25 -0400 Adding to Audit-Trail. ----- Forwarded message from Sergey Shkonda ----- Delivered-To: mike@freebsd.org From: Sergey Shkonda Subject: Re: bin/18742: times.allow field parsed incorrectly X-ELM-OSV: (Our standard violations) hdr-charset=KOI8-U In-Reply-To: <200107220243.f6M2hCN83847@freefall.freebsd.org> "from mike@FreeBSD.org at Jul 21, 2001 07:43:12 pm" To: mike@FreeBSD.org Date: Mon, 23 Jul 2001 12:17:07 +0300 (EEST) X-Mailer: ELM [version 2.4ME+ PL88 (25)] > Synopsis: times.allow field parsed incorrectly > > State-Changed-From-To: open->feedback > State-Changed-By: mike > State-Changed-When: Sat Jul 21 19:42:50 PDT 2001 > State-Changed-Why: > > Does this problem still occur in newer versions of FreeBSD, > such as 4.3-RELEASE? Yes. There is the patch: --- login_times.c 1999/08/28 00:05:48 1.7 +++ login_times.c 2001/07/23 09:12:58 @@ -99,6 +99,8 @@ p = parse_time(++p, &m.lt_end); else m.lt_end = 1440; + if (m.lt_end < m.lt_start) + m_lt_end += 1440; t = m; } -- Sergey Shkonda ----- End forwarded message ----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message