mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
use pa_fopen_cloexec() where applicable
This commit is contained in:
parent
88b72958be
commit
168be3830a
14 changed files with 27 additions and 27 deletions
|
|
@ -168,7 +168,7 @@ int pa_config_parse(const char *filename, FILE *f, const pa_config_item *t, void
|
|||
pa_assert(filename);
|
||||
pa_assert(t);
|
||||
|
||||
if (!f && !(f = fopen(filename, "r"))) {
|
||||
if (!f && !(f = pa_fopen_cloexec(filename, "r"))) {
|
||||
if (errno == ENOENT) {
|
||||
pa_log_debug("Failed to open configuration file '%s': %s", filename, pa_cstrerror(errno));
|
||||
r = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue