apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stri...@apache.org
Subject cvs commit: apr/file_io/unix tempdir.c
Date Sun, 02 Nov 2003 15:46:02 GMT
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
  
  
  

Mime
View raw message