[pulseaudio-commits] src/pulsecore

Arun Raghavan arun at kemper.freedesktop.org
Sun Oct 18 20:23:47 PDT 2015


 src/pulsecore/core-util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c021bfc6e06035d6b913cc6a05df1ee7ee2588f2
Author: Julien Isorce <julien.isorce at gmail.com>
Date:   Sat Oct 10 20:11:21 2015 +0100

    core-util: avoid calling fchmod if already right mode
    
    fchmod is denied in chromium sandbox.

diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index 278ad63..2099686 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -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;
     };



More information about the pulseaudio-commits mailing list