From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 22 19:28:43 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FE4A106566B for ; Tue, 22 Feb 2011 19:28:43 +0000 (UTC) (envelope-from dougb@dougbarton.us) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id 1F89A8FC18 for ; Tue, 22 Feb 2011 19:28:42 +0000 (UTC) Received: (qmail 2695 invoked by uid 399); 22 Feb 2011 19:28:37 -0000 Received: from router.ka9q.net (HELO doug-optiplex.ka9q.net) (dougb@dougbarton.us@75.60.237.91) by mail2.fluidhosting.com with ESMTPAM; 22 Feb 2011 19:28:37 -0000 X-Originating-IP: 75.60.237.91 X-Sender: dougb@dougbarton.us Message-ID: <4D640E64.5020008@dougbarton.us> Date: Tue, 22 Feb 2011 11:28:36 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20110129 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4D6323D9.5090500@dougbarton.us> <4D63659E.6010305@dougbarton.us> In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 22 Feb 2011 19:39:45 +0000 Subject: Re: Problem with etc/periodic/daily/310.accounting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2011 19:28:43 -0000 On 02/22/2011 07:57, Garrett Cooper wrote: > Can accounting_file by provided by user input (doesn't look like > it today, but just to be safe I thought I should check)? These are the kinds of questions it's good to answer for yourself before you post to the list. :) > If so then the dirname should be restored. Example: > > $ foo=/a/b//////c > $ echo ${foo%/*} > /a/b///// > $ dirname $foo > /a/b A) I refuse to believe that our users are that stupid B) Even if they are, it works Doug (ok, "refuse" is a bit strong ...) -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/