apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject APR 0.9: apr_temp_dir_get broken
Date Sat, 24 Apr 2004 11:41:48 GMT

The test file is missing a placeholder pattern. That made the use of
htpasswd impossible. The following is just a backport from 1.0:

Index: tempdir.c
===================================================================
RCS file: /home/cvspublic/apr/file_io/unix/tempdir.c,v
retrieving revision 1.2.2.1
diff -u -r1.2.2.1 tempdir.c
--- tempdir.c   13 Feb 2004 09:33:43 -0000      1.2.2.1
+++ tempdir.c   24 Apr 2004 11:39:57 -0000
@@ -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) {

nd
-- 
Das, was ich nicht kenne, spielt stückzahlmäßig *keine* Rolle.

                                   -- Helmut Schellong in dclc

Mime
View raw message