striker 2003/11/02 07:46:02
Modified: file_io/unix tempdir.c
Log:
* file_io/unix/tempdir.c
(apr_temp_dir_get): If we have a cache we might aswell use it.
Revision Changes Path
1.5 +4 -0 apr/file_io/unix/tempdir.c
Index: tempdir.c
===================================================================
RCS file: /home/cvs/apr/file_io/unix/tempdir.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- tempdir.c 2 Nov 2003 01:13:52 -0000 1.4
+++ tempdir.c 2 Nov 2003 15:46:02 -0000 1.5
@@ -91,6 +91,10 @@
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