From owner-cvs-all@FreeBSD.ORG Mon Sep 22 17:00:27 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFB4416A4B3; Mon, 22 Sep 2003 17:00:27 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 415BC43FE9; Mon, 22 Sep 2003 17:00:27 -0700 (PDT) (envelope-from gad@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h8N00RXJ064482; Mon, 22 Sep 2003 17:00:27 -0700 (PDT) (envelope-from gad@repoman.freebsd.org) Received: (from gad@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h8N00QUN064481; Mon, 22 Sep 2003 17:00:26 -0700 (PDT) (envelope-from gad) Message-Id: <200309230000.h8N00QUN064481@repoman.freebsd.org> From: Garance A Drosehn Date: Mon, 22 Sep 2003 17:00:26 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/newsyslog extern.h newsyslog.c ptimes.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2003 00:00:27 -0000 gad 2003/09/22 17:00:26 PDT FreeBSD src repository Modified files: usr.sbin/newsyslog extern.h newsyslog.c ptimes.c Log: Restructure the time processing routines, mainly to fix up the "will trim at" message printed when the user requests '-v'. The previous code would often print the wrong time, such as: On Sept 22, run: newsyslog -nv /var/log/wtmp And see: will trim at Mon Sep 1 05:00:00 2003 correct msg: will trim at Wed Oct 1 05:00:00 2003 MFC after: 20 days Revision Changes Path 1.2 +25 -5 src/usr.sbin/newsyslog/extern.h 1.82 +96 -41 src/usr.sbin/newsyslog/newsyslog.c 1.3 +359 -39 src/usr.sbin/newsyslog/ptimes.c