diff options
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/unix/tempdir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/file_io/unix/tempdir.c b/file_io/unix/tempdir.c index 0b433c5ae..49b3c2e5b 100644 --- a/file_io/unix/tempdir.c +++ b/file_io/unix/tempdir.c @@ -91,6 +91,10 @@ APR_DECLARE(apr_status_t) apr_temp_dir_get(const char **temp_dir, char *cwd; int i; + /* If we have a cached temp dir, use it. */ + if (global_temp_dir[0]) + goto end; + /* Our goal is to find a temporary directory suitable for writing into. We'll only pay the price once if we're successful -- we cache our successful find. Here's the order in which we'll try |