apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thom May <t...@planetarytramp.net>
Subject Re: APR 0.9: apr_temp_dir_get broken
Date Mon, 26 Apr 2004 10:40:13 GMT
* Andr? Malo (nd@perlig.de) wrote :
> 
> The test file is missing a placeholder pattern. That made the use of
> htpasswd impossible. The following is just a backport from 1.0:
> 
yeah. +1.
(mutters about glibc being stricter than bsd's libc on this one).
-Thom

> 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


Mime
View raw message