You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bn...@apache.org on 2003/08/25 20:21:06 UTC
cvs commit: apr/file_io/unix tempdir.c
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