AW: AW: checkout fails due to missing temp dir
From: Marc Aushold <rettkliff2_at_yahoo.de>
Date: 2006-10-30 16:53:05 CET
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?
2) the variable p (apr_pool_t): can it be invalid by a corrupted APR installation or anything else?
Is there another way to get more information out of the functions? Should I add my own output and rebuild?
Regards,
Marc.
----- Ursprüngliche Mail ----
Von: Kenneth Porter <shiva_at_sewingwitch.com>
An: users_at_subversion.tigris.org
CC: Marc Aushold <rettkliff2_at_yahoo.de>
Gesendet: Samstag, den 28. Oktober 2006, 17:30:42 Uhr
Betreff: Re: AW: checkout fails due to missing temp dir
--On Saturday, October 28, 2006 10:19 AM +0000 Marc Aushold
<rettkliff2_at_yahoo.de> wrote:
> Great, a good idea! I did so, and get this APR error code: apr_err=20014.
> I just googled, a lot of pages that I will have to check now :/. If
> someone knows what might be the reason, I would really appreciate any
> hints! I will notify the list if I solve the problem. Thanks!
Take a look at apr/file_io/unix/tempdir.c. It returns APR_EGENERAL (20014)
on failure to find a suitable directory. The algorithm looks pretty
straightforward. Let us know what assumption is failing.
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
|
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.