[vlc-devel] commit: rand: ASCII path, use utf8_open for close-on-exec ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Oct 17 22:51:05 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 17 23:40:33 2009 +0300| [2805b4ba351b841a17a614773b6c52f42432e37f] | committer: Rémi Denis-Courmont 

rand: ASCII path, use utf8_open for close-on-exec

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2805b4ba351b841a17a614773b6c52f42432e37f
---

 src/misc/rand.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/misc/rand.c b/src/misc/rand.c
index 81bc185..ab25774 100644
--- a/src/misc/rand.c
+++ b/src/misc/rand.c
@@ -35,6 +35,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <pthread.h>
+#include <vlc_charset.h>
 
 #include <vlc_md5.h>
 
@@ -57,7 +58,7 @@ static void vlc_rand_init (void)
     uint8_t key[BLOCK_SIZE];
 
     /* Get non-predictible value as key for HMAC */
-    int fd = open (randfile, O_RDONLY);
+    int fd = utf8_open (randfile, O_RDONLY);
     if (fd == -1)
         return; /* Uho! */
 




More information about the vlc-devel mailing list