diff options
author | Daniel Mack <daniel@caiaq.de> | 2009-10-31 02:16:14 +0100 |
---|---|---|
committer | Daniel Mack <daniel@caiaq.de> | 2009-10-31 02:16:14 +0100 |
commit | c4e276edbd84cbb8c5b594c9f427b0a25a7fb2ab (patch) | |
tree | 55c0d0f8e378e5e6fe203b250a816ea4d2d75ccb /src/pulsecore/database-simple.c | |
parent | 9c61465c796f3369c7cc57c094489fb383216a1b (diff) | |
parent | 2dc37e1214f20aab528ae680e9a85fc8ea143313 (diff) |
Merge branch 'master' of git://0pointer.de/pulseaudio
Diffstat (limited to 'src/pulsecore/database-simple.c')
-rw-r--r-- | src/pulsecore/database-simple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/database-simple.c b/src/pulsecore/database-simple.c index 1f4caf71..754930db 100644 --- a/src/pulsecore/database-simple.c +++ b/src/pulsecore/database-simple.c @@ -237,7 +237,7 @@ pa_database* pa_database_open(const char *fn, pa_bool_t for_write) { path = pa_sprintf_malloc("%s."CANONICAL_HOST".simple", fn); errno = 0; - f = fopen(path, "r"); + f = pa_fopen_cloexec(path, "r"); if (f || errno == ENOENT) { /* file not found is ok */ db = pa_xnew0(simple_data, 1); @@ -480,7 +480,7 @@ int pa_database_sync(pa_database *database) { errno = 0; - f = fopen(db->tmp_filename, "w"); + f = pa_fopen_cloexec(db->tmp_filename, "w"); if (!f) goto fail; |