thommay 2003/11/01 16:06:24
Modified: file_io/unix tempdir.c
Log:
Bah. *BSD's mkstemp doesn't check how many (or whether you have any) Xs you
have in the mkstemp format. GNU libc does.
Revision Changes Path
1.3 +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
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- tempdir.c 25 Aug 2003 18:21:06 -0000 1.2
+++ tempdir.c 2 Nov 2003 00:06:24 -0000 1.3
@@ -69,7 +69,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) {