mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
Make all fopen() calls use O_CLOEXEC
by adding "e" to the mode strings.
This commit is contained in:
parent
400860f63c
commit
bb4f274ae0
10 changed files with 23 additions and 23 deletions
|
|
@ -514,7 +514,7 @@ static int draw_graph(struct data *d, const char *path)
|
|||
fputs(d->dot_str, stdout);
|
||||
} else {
|
||||
/* open the file */
|
||||
fp = fopen(path, "w");
|
||||
fp = fopen(path, "we");
|
||||
if (fp == NULL) {
|
||||
printf("open error: could not open %s for writing\n", path);
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue