From owner-freebsd-hackers@FreeBSD.ORG Tue May 30 16:29:17 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA63316AB3A for ; Tue, 30 May 2006 16:29:17 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1209643D62 for ; Tue, 30 May 2006 16:29:09 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k4UGT33m019778; Tue, 30 May 2006 11:29:06 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <447C72D3.1030103@centtech.com> Date: Tue, 30 May 2006 11:29:07 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.2 (X11/20060506) MIME-Version: 1.0 To: "David S. Madole" References: <447C6BCF.50908@centtech.com> <447C6EC9.6070806@madole.net> In-Reply-To: <447C6EC9.6070806@madole.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1499/Mon May 29 15:35:17 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org Subject: Re: truncate tool - must be root? 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, 30 May 2006 16:29:22 -0000 David S. Madole wrote: > Eric Anderson wrote: >> Is it expected that truncate(8) must be used by a superuser? If so, >> then the man page should probably mention it. If not, then it's >> broken :) > > That's a pretty weak attempt at a bug report, and a wrong one, too: > > $ uname -m -r -s > FreeBSD 5.4-RELEASE i386 > $ id > uid=2028(madole) gid=2000(users) groups=2000(users) > $ echo "this is a test" > test > $ ls -l test > -rw-r----- 1 madole httpd 15 May 30 12:06 test > $ truncate -s 7 test > $ ls -l test > -rw-r----- 1 madole httpd 7 May 30 12:06 test > $ cat test > this is$ > > Want to try again, giving any sort of interesting details you can, like > version you tested on or a reproducible test case? > > David *sigh* My mistake - I'm not even going to mention the simple nature of my problem, because I'd embarrass myself too much. :) You're right though, it was a bad report, and I should be smacked with a silly stick.. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------