[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Bug in SVN::Client

From: John Peacock <jpeacock_at_rowman.com>
Date: 2006-12-13 23:19:38 CET

C. Michael Pilato wrote:
> Saw no attached script, but, I mean, is there really a bug here? When
> you run 'sudo', the HOME environment variable is left as that of the
> real UID. Does the problem go away when you run 'sudo -H ./test' ?

No that doesn't fix it; it really is due to the real UID being 0 and the
effective UID not having access to root's files. I've traced back as
far as svn_config_get_config() but I haven't worked my way back to
discover the algorithm that tries to find the HOME on it's own.

But more importantly if I change the initializer to be this:

        my $client = SVN::Client->new(config=>{});

then the test file succeeds (and indeed this fixes SVN::Web as well).


John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 13 23:19:38 2006

This is an archived mail posted to the Subversion Dev mailing list.