apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/file_io/unix tempdir.c
Date Mon, 25 Aug 2003 18:21:06 GMT
bnicholes    2003/08/25 11:21:06

  Modified:    file_io/unix tempdir.c
  Log:
  Add the path to the NetWare TMP directory to the list of test directories.
  
  Revision  Changes    Path
  1.2       +8 -0      apr/file_io/unix/tempdir.c
  
  Index: tempdir.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/tempdir.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- tempdir.c	23 Aug 2003 10:01:22 -0000	1.1
  +++ tempdir.c	25 Aug 2003 18:21:06 -0000	1.2
  @@ -100,6 +100,7 @@
             $TEMP
             $TMPDIR
             "C:\TEMP"     (windows only)
  +          "SYS:\TMP"    (netware only)
             "/tmp"
             "/var/tmp"
             "/usr/tmp"
  @@ -126,6 +127,13 @@
       /* Next, on Win32, try the C:\TEMP directory. */
       if (test_tempdir("C:\\TEMP", p)) {
           memcpy(global_temp_dir, "C:\\TEMP", 7 + 1);
  +        goto end;
  +    }
  +#endif
  +#ifdef NETWARE
  +    /* Next, on NetWare, try the SYS:/TMP directory. */
  +    if (test_tempdir("SYS:/TMP", p)) {
  +        memcpy(global_temp_dir, "SYS:/TMP", 8 + 1);
           goto end;
       }
   #endif
  
  
  

Mime
View raw message