From owner-cvs-src@FreeBSD.ORG Mon Aug 28 06:41:50 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A92F016A4DF; Mon, 28 Aug 2006 06:41:50 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AF2743D49; Mon, 28 Aug 2006 06:41:50 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7S6foiB070041; Mon, 28 Aug 2006 06:41:50 GMT (envelope-from dougb@repoman.freebsd.org) Received: (from dougb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7S6fokX070040; Mon, 28 Aug 2006 06:41:50 GMT (envelope-from dougb) Message-Id: <200608280641.k7S6fokX070040@repoman.freebsd.org> From: Doug Barton Date: Mon, 28 Aug 2006 06:41:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/libexec/save-entropy save-entropy.sh X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 06:41:50 -0000 dougb 2006-08-28 06:41:50 UTC FreeBSD src repository Modified files: libexec/save-entropy save-entropy.sh Log: 1. Attempt to take one bullet out of the foot-shooting gun by silently ignoring errors when sourcing rc.conf* files. The most common error occurs when users put a command of some sort into those files. (ifconfig is a popular choice) 2. Make the file rotation logic simpler by starting one down from the "top" of the list, rather than at the top. 3. Try to make file rotation more secure by calling unlink(1) on all new file names before rotating an old file to the new name, rather than merely calling 'rm -f' on any files that exceed the number of files to save. Revision Changes Path 1.4 +10 -10 src/libexec/save-entropy/save-entropy.sh