diff options
Diffstat (limited to 'stream/cookies.c')
-rw-r--r-- | stream/cookies.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/cookies.c b/stream/cookies.c index e0cfca7681..b5815da6e5 100644 --- a/stream/cookies.c +++ b/stream/cookies.c @@ -99,7 +99,7 @@ static char *load_file(const char *filename, int64_t * length) mp_msg(MSGT_NETWORK, MSGL_V, "Loading cookie file: %s\n", filename); - fd = open(filename, O_RDONLY); + fd = open(filename, O_RDONLY | O_CLOEXEC); if (fd < 0) { mp_msg(MSGT_NETWORK, MSGL_V, "Could not open"); goto err_out; |