[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.13-150-g63fc26e

Lennart Poettering gitmailer-noreply at 0pointer.de
Thu Dec 18 06:25:36 PST 2008


This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.

The master branch has been updated
      from  1d2e5cba52ce439dc755d354bccda2709679e9eb (commit)

- Log -----------------------------------------------------------------
63fc26e... Allow access("/dev/dsp", W_OK) succeed
-----------------------------------------------------------------------

Summary of changes:
 src/utils/padsp.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

-----------------------------------------------------------------------

commit 63fc26ed034846a8d2189e5cc2fe890ce3b4c7b3
Author: Lennart Poettering <lennart at poettering.net>
Date:   Thu Dec 18 15:24:02 2008 +0100

    Allow access("/dev/dsp", W_OK) succeed
    
    Some stupid apps (such as X-lite Softphone) check for W_OK on /dev/dsp.
    This is of course crazy but easy for us to support.
    
    Closes rhbz #474313

diff --git a/src/utils/padsp.c b/src/utils/padsp.c
index 2e6e557..046bae4 100644
--- a/src/utils/padsp.c
+++ b/src/utils/padsp.c
@@ -2382,15 +2382,15 @@ int access(const char *pathname, int mode) {
     debug(DEBUG_LEVEL_VERBOSE, __FILE__": access(%s)\n", pathname?pathname:"NULL");
 
     if (!pathname ||
-        ( strcmp(pathname, "/dev/dsp") != 0 &&
-          strcmp(pathname, "/dev/adsp") != 0 &&
-          strcmp(pathname, "/dev/sndstat") != 0 &&
-          strcmp(pathname, "/dev/mixer") != 0 )) {
+        (strcmp(pathname, "/dev/dsp") != 0 &&
+         strcmp(pathname, "/dev/adsp") != 0 &&
+         strcmp(pathname, "/dev/sndstat") != 0 &&
+         strcmp(pathname, "/dev/mixer") != 0 )) {
         LOAD_ACCESS_FUNC();
         return _access(pathname, mode);
     }
 
-    if (mode & (W_OK | X_OK)) {
+    if (mode & X_OK) {
         debug(DEBUG_LEVEL_NORMAL, __FILE__": access(%s, %x) = EACCESS\n", pathname, mode);
         errno = EACCES;
         return -1;

-- 
hooks/post-receive
PulseAudio Sound Server



More information about the pulseaudio-commits mailing list