diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-10-30 04:54:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-10-30 04:54:19 +0100 |
commit | 168be3830ae291dd819abebec813f76151487bb3 (patch) | |
tree | 783df8db52cac54b74d8e304d98e7ab5e4683bd8 /src/pulsecore/cli-command.c | |
parent | 88b72958bebd1770e45a4af2dc9fec75aaf1f2de (diff) |
use pa_fopen_cloexec() where applicable
Diffstat (limited to 'src/pulsecore/cli-command.c')
-rw-r--r-- | src/pulsecore/cli-command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/cli-command.c b/src/pulsecore/cli-command.c index b57919a4..82a44d84 100644 --- a/src/pulsecore/cli-command.c +++ b/src/pulsecore/cli-command.c @@ -1804,7 +1804,7 @@ int pa_cli_command_execute_file(pa_core *c, const char *fn, pa_strbuf *buf, pa_b if (!fail) fail = &_fail; - if (!(f = fopen(fn, "r"))) { + if (!(f = pa_fopen_cloexec(fn, "r"))) { pa_strbuf_printf(buf, "open('%s') failed: %s\n", fn, pa_cstrerror(errno)); if (!*fail) ret = 0; |