mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
core-util: avoid calling fchmod if already right mode
fchmod is denied in chromium sandbox.
This commit is contained in:
parent
336a2cc6f0
commit
c021bfc6e0
1 changed files with 1 additions and 1 deletions
|
|
@ -343,7 +343,7 @@ again:
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_FCHMOD
|
||||
if (fchmod(fd, m) < 0) {
|
||||
if ((st.st_mode & 07777) != m && fchmod(fd, m) < 0) {
|
||||
pa_assert_se(pa_close(fd) >= 0);
|
||||
goto fail;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue