From 97c5433133d3da48a325199a2c79b458e2a634c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Tue, 9 Oct 2007 14:05:57 +0000 Subject: [PATCH] Partly revert [20969]. fix #1311 --- modules/control/http/mvar.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/control/http/mvar.c b/modules/control/http/mvar.c index 0156c8a7a2..48ddad8281 100644 --- a/modules/control/http/mvar.c +++ b/modules/control/http/mvar.c @@ -506,7 +506,7 @@ mvar_t *E_(mvar_HttpdInfoSetNew)( char *name, httpd_t *p_httpd, int i_type ) #endif mvar_t *E_(mvar_FileSetNew)( intf_thread_t *p_intf, char *name, - const char *value ) + const char *psz_dir ) { mvar_t *s = E_(mvar_New)( name, "set" ); #ifdef HAVE_SYS_STAT_H @@ -514,8 +514,7 @@ mvar_t *E_(mvar_FileSetNew)( intf_thread_t *p_intf, char *name, #endif char **ppsz_dir_content; int i_dir_content, i; -#warning Obvious bug here: - char *psz_dir = E_(RealPath)( p_intf, psz_dir ); + psz_dir = E_(RealPath)( p_intf, psz_dir ); #ifdef HAVE_SYS_STAT_H if( (utf8_stat( psz_dir, &stat_info ) == -1 ) -- 2.20.1