From 36a06a66e070d01f8718937203d1ac20a983e611 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 27 Nov 2014 12:17:14 +0100 Subject: [PATCH] uuid: use tvh_open instead direct open (O_CLOEXEC issue) --- src/uuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uuid.c b/src/uuid.c index 9b5472cf..925d69e2 100644 --- a/src/uuid.c +++ b/src/uuid.c @@ -94,7 +94,7 @@ bin2hex(char *dst, size_t dstlen, const uint8_t *src, size_t srclen) void uuid_init ( void ) { - fd = open(RANDOM_PATH, O_RDONLY|O_CLOEXEC); + fd = tvh_open(RANDOM_PATH, O_RDONLY, 0); if (fd == -1) { tvherror("uuid", "failed to open %s", RANDOM_PATH); exit(1);