DVB: use utf8_open() so we get O_CLOEXEC right
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 20:20:09 +0000 (23:20 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 20:20:09 +0000 (23:20 +0300)
modules/access/dvb/linux_dvb.c

index 4ef087a..20167cd 100644 (file)
@@ -118,7 +118,7 @@ int FrontendOpen( access_t *p_access )
         return VLC_ENOMEM;
 
     msg_Dbg( p_access, "Opening device %s", frontend );
-    if( (p_sys->i_frontend_handle = open(frontend, O_RDWR | O_NONBLOCK)) < 0 )
+    if( (p_sys->i_frontend_handle = utf8_open(frontend, O_RDWR | O_NONBLOCK)) < 0 )
     {
         msg_Err( p_access, "FrontEndOpen: opening device failed (%m)" );
         free( p_frontend );