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

Bug in SVN::Client

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

I went to install the bleading edge SVN::Web (now with SVN::Client
support for remote repositories) and it worked fine in tests, but fails
when run as a mod_perl script. I've now confirmed that the failure is
actually the fault of SVN::Client.

Attached is a script which needs to be run like this:

        $ sudo ./test

which results in the following error message:

> Permission denied: Can't open file '/root/.subversion/servers': Permission denied at ./test line 26

The issue came up because Apache drops privileges exactly like the
script does, and SVN::Client->new() tries to open the real UID's
.subversion directory (which is can't), not the effective UID's
directory. I haven't looked at the code yet to figure out what is going
wrong (too busy trying to work out whether it was mod_perl's fault instead).

Details:

Subversion 1.4.2 built from source with Apache 2.2.0 and APR 1.2.2
Perl v5.8.8

John

-- 
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:02:37 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.