tags 496847 + confirmed fixed-upstream
thanks

Hi,

On Thu, Aug 28, 2008 at 12:30:32AM +0200, Bernhard Schmidt wrote:
> After upgrading rrdtool to 1.3 it cannot be run as "RRD Server" (see
> rrdtool(1)) anymore. It claims that the chroot call failed.
> 
> rrdtool 1.2.28:
> # rrdtool - /tmp
> ?
> RRDtool 1.2.28  Copyright 1997-2008 by Tobias Oetiker <[EMAIL PROTECTED]>
> [...]
> 
> rrdtool 1.3.1:
> # rrdtool - /tmp
> ERROR: can't change root to '/tmp' errno=2

I was able to reproduce that.

> Last calls in strace:
> chroot("/tmp")                          = 0
> write(2, "ERROR: can\'t change root to \'/tm"..., 43ERROR: can't change root
> to '/tmp' errno=2

Upstream used to check for errors by testing the errno variable for zero
without explicitly resetting it to zero before calling chroot(). This
has been fixed in revision 1471 in upstream SVN by checking for the
return value of chroot() instead.

I will double-check that this really fixes the reported issue and
prepare a new upload tonight (unless someone else of the Debian RRDTool
team does so before).

Thanks for reporting this!

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

Attachment: signature.asc
Description: Digital signature

Reply via email to