diff options
author | bnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68> | 2003-08-25 18:21:06 +0000 |
---|---|---|
committer | bnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68> | 2003-08-25 18:21:06 +0000 |
commit | b568dc9f26c94138efff0ff86f57bdf8cbc63789 (patch) | |
tree | 77d89a91c2f08e85ccdec163aad4dcde06f87b67 /file_io | |
parent | bf3a980be60a00370da7909bd5572a42bd44b27d (diff) | |
download | libapr-b568dc9f26c94138efff0ff86f57bdf8cbc63789.tar.gz |
Add the path to the NetWare TMP directory to the list of test directories.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64597 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/unix/tempdir.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/file_io/unix/tempdir.c b/file_io/unix/tempdir.c index b9bc80a8b..c560c007c 100644 --- a/file_io/unix/tempdir.c +++ b/file_io/unix/tempdir.c @@ -100,6 +100,7 @@ APR_DECLARE(apr_status_t) apr_temp_dir_get(const char **temp_dir, $TEMP $TMPDIR "C:\TEMP" (windows only) + "SYS:\TMP" (netware only) "/tmp" "/var/tmp" "/usr/tmp" @@ -129,6 +130,13 @@ APR_DECLARE(apr_status_t) apr_temp_dir_get(const char **temp_dir, 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 /* Next, try a set of hard-coded paths. */ for (i = 0; i < (sizeof(try_dirs) / sizeof(const char *)); i++) { |