diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-08-31 15:31:33 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-08-31 15:31:33 +0000 |
commit | 0f6098bf6428b17bbff2b2d6f4e8ead0d43d7f3a (patch) | |
tree | 18c447c2efed74fc90ffd26ba69b11946df6b6e3 /src/utils/padsp.c | |
parent | aee4a3738eaa5026a5ade1e865f67860c9bc004f (diff) |
work around bug in firefox which apparently misuses access() as NULL pointer test. Original patch by "alon". (Closes #27)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1352 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/utils/padsp.c')
-rw-r--r-- | src/utils/padsp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/padsp.c b/src/utils/padsp.c index c765b6935..ddb732f03 100644 --- a/src/utils/padsp.c +++ b/src/utils/padsp.c @@ -2121,6 +2121,13 @@ int close(int fd) { } int access(const char *pathname, int mode) { + + if (!pathname) { + /* Firefox needs this. See #27 */ + errno = EFAULT; + return -1; + } + debug(DEBUG_LEVEL_VERBOSE, __FILE__": access(%s)\n", pathname); if (strcmp(pathname, "/dev/dsp") != 0 && |