mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -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
|
|
@ -949,7 +949,7 @@ static int adapter_init_modalias(struct spa_bt_monitor *monitor, struct spa_bt_a
|
|||
if (str == NULL)
|
||||
goto fail;
|
||||
snprintf(path, sizeof(path), "/sys/class/bluetooth/%s/device/modalias", str);
|
||||
if ((f = fopen(path, "rb")) == NULL) {
|
||||
if ((f = fopen(path, "rbe")) == NULL) {
|
||||
res = -errno;
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue