diff options
author | Jeff Trawick <trawick@apache.org> | 2004-04-28 11:43:00 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2004-04-28 11:43:00 +0000 |
commit | 07ffd08b954a8046c1e46ef7be9cb101798da4e6 (patch) | |
tree | 401d2330bca32f0984432c41ba95c0b0a39bf506 /file_io | |
parent | 96a983e076200eff231d1ac26b8c73c56e7021a2 (diff) | |
download | apr-07ffd08b954a8046c1e46ef7be9cb101798da4e6.tar.gz |
backport apr_temp_dir_get() fix from apr-1.0
1.0 fix by: Thom May
reviewed by: nd
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65079 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/unix/tempdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/file_io/unix/tempdir.c b/file_io/unix/tempdir.c index cb92514a6..8f0594d2c 100644 --- a/file_io/unix/tempdir.c +++ b/file_io/unix/tempdir.c @@ -30,7 +30,7 @@ static char global_temp_dir[APR_PATH_MAX+1] = { 0 }; static int test_tempdir(const char *temp_dir, apr_pool_t *p) { apr_file_t *dummy_file; - const char *path = apr_pstrcat(p, temp_dir, "/apr-tmp", NULL); + const char *path = apr_pstrcat(p, temp_dir, "/apr-tmp.XXXXXX", NULL); if (apr_file_mktemp(&dummy_file, (char *)path, 0, p) == APR_SUCCESS) { if (apr_file_putc('!', dummy_file) == APR_SUCCESS) { |