summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/database-simple.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-10-30 04:54:19 +0100
committerLennart Poettering <lennart@poettering.net>2009-10-30 04:54:19 +0100
commit168be3830ae291dd819abebec813f76151487bb3 (patch)
tree783df8db52cac54b74d8e304d98e7ab5e4683bd8 /src/pulsecore/database-simple.c
parent88b72958bebd1770e45a4af2dc9fec75aaf1f2de (diff)
use pa_fopen_cloexec() where applicable
Diffstat (limited to 'src/pulsecore/database-simple.c')
-rw-r--r--src/pulsecore/database-simple.c4
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;