Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2006 12:11:53 -0400
From:      "David S. Madole" <david@madole.net>
To:        Eric Anderson <anderson@centtech.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: truncate tool - must be root?
Message-ID:  <447C6EC9.6070806@madole.net>
In-Reply-To: <447C6BCF.50908@centtech.com>
References:  <447C6BCF.50908@centtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?447C6EC9.6070806>