Commit 97c54331 authored by Rafaël Carré's avatar Rafaël Carré

Partly revert [20969]. fix #1311

parent db1a5bd2
......@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment