]> git.sesse.net Git - vlc/blobdiff - modules/control/http/util.c
Lock/Unlock the http control module.
[vlc] / modules / control / http / util.c
index c107d2e0d29c6c22bdffad8db7373e1b3c865054..067d4bb784d7982b6455a643b0bea18dac74e1e3 100644 (file)
@@ -184,6 +184,13 @@ int ParseDirectory( intf_thread_t *p_intf, char *psz_root,
     if( ACL_LoadFile( p_acl, dir ) )
     {
         ACL_Destroy( p_acl );
+
+        struct stat st;
+        if( stat( dir, &st ) == 0 )
+        {
+            closedir( p_dir );
+            return VLC_EGENERIC;
+        }
         p_acl = NULL;
     }
 
@@ -864,7 +871,7 @@ input_item_t *MRLParse( intf_thread_t *p_intf, char *_psz,
 /**********************************************************************
  * RealPath: parse ../, ~ and path stuff
  **********************************************************************/
-char *RealPath( intf_thread_t *p_intf, const char *psz_src )
+char *RealPath( const char *psz_src )
 {
     char *psz_dir;
     char *p;