You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2004/04/28 13:43:00 UTC
cvs commit: apr/file_io/unix tempdir.c
trawick 2004/04/28 04:43:00
Modified: file_io/unix Tag: APR_0_9_BRANCH tempdir.c
Log:
backport apr_temp_dir_get() fix from apr-1.0
1.0 fix by: Thom May
reviewed by: nd
Revision Changes Path
No revision
No revision
1.2.2.2 +1 -1 apr/file_io/unix/tempdir.c
Index: tempdir.c
===================================================================
RCS file: /home/cvs/apr/file_io/unix/tempdir.c,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -r1.2.2.1 -r1.2.2.2
--- tempdir.c 13 Feb 2004 09:33:43 -0000 1.2.2.1
+++ tempdir.c 28 Apr 2004 11:43:00 -0000 1.2.2.2
@@ -30,7 +30,7 @@
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) {