[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: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-10-30 16:58:23 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?

It depends if it's failing on the server or the client. If it fails
on the server side it's Apache's user. If it fails on the client
side, it's your local user. I can't tell off the top of my head which
it is.

> 2) the variable p (apr_pool_t): can it be invalid by a corrupted APR
> installation or anything else?

Uhh, well, maybe, but you don't have any actual indication that
something like that is happening, AFAICT. A corrupt pool would be
more likely to produce a crash than anything like this.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 30 16:59:20 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.