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 01:13:52 GMT
striker     2003/11/01 17:13:52

  Modified:    file_io/unix tempdir.c
  Log:
  * file_io/unix/tempdir.c
  
    (apr_temp_dir_get): Don't cache the cwd as a temp dir.
  
  Revision  Changes    Path
  1.4       +3 -2      apr/file_io/unix/tempdir.c
  
  Index: tempdir.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/tempdir.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- tempdir.c	2 Nov 2003 00:06:24 -0000	1.3
  +++ tempdir.c	2 Nov 2003 01:13:52 -0000	1.4
  @@ -160,8 +160,9 @@
       /* Finally, try the current working directory. */
       if (APR_SUCCESS == apr_filepath_get(&cwd, APR_FILEPATH_NATIVE, p)) {
           if (test_tempdir(cwd, p)) {
  -            memcpy(global_temp_dir, cwd, strlen(cwd) + 1);
  -            goto end;
  +            /* Don't cache if the selected temp dir is the cwd */
  +            *temp_dir = apr_pstrdup(p, cwd);
  +            return APR_SUCCESS;
           }
       }
   
  
  
  

Mime
View raw message