[vlc-devel] commit: HTTP ACL: fail closed, not open ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Jul 2 21:32:16 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Jul 2 22:34:17 2008 +0300| [984766504502f31ce375f873a20e34ace880d7ac]
HTTP ACL: fail closed, not open
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=984766504502f31ce375f873a20e34ace880d7ac
---
modules/control/http/util.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/control/http/util.c b/modules/control/http/util.c
index 19dd7b1..845694e 100644
--- a/modules/control/http/util.c
+++ b/modules/control/http/util.c
@@ -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( dir );
+ return VLC_EGENERIC;
+ }
p_acl = NULL;
}
More information about the vlc-devel
mailing list