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

Re: AW: checkout fails due to missing temp dir

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2006-10-30 17:00:35 CET

On 10/30/06, Marc Aushold <rettkliff2@yahoo.de> wrote:
>
> Hi, I tried to dissect the algorithm to find out why it cannot find a
> temporary folder. This is how it works:
>
> All he's trying to do is to create a file in several folders. First in
> folders from the evironment variables $TMP, $TEMP and $TMPDIR - none of the
> is set on my system. Then the algorithm goes through hard coded paths:
> "/tmp", "/usr/tmp", "/var/tmp".
>
> To create a file, he tries this:
>
> char *path = apr_pstrcat(p, temp_dir, "/apr-tmp.XXXXXX", NULL);
> if (apr_file_mktemp(&dummy_file, path, 0, p) == APR_SUCCESS)
>
> Lokks like in none of the folders this functions can create the file. Two
> questions:
>
> 1) Which user needs the rights to create the file: The user the Apache is
> running under? Or the one I logon at the DAV server?

The process which is handling the request should be able to write to
one of the dirs found. Assuming you use Apache+HTTP(S) to do your
commits, that would mean the Apache process (apache/httpd user?) needs
write access.

bye,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 30 17:02:29 2006

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

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