mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
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
This commit is contained in:
parent
aee4a3738e
commit
0f6098bf64
1 changed files with 7 additions and 0 deletions
|
|
@ -2121,6 +2121,13 @@ int close(int fd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int access(const char *pathname, int mode) {
|
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);
|
debug(DEBUG_LEVEL_VERBOSE, __FILE__": access(%s)\n", pathname);
|
||||||
|
|
||||||
if (strcmp(pathname, "/dev/dsp") != 0 &&
|
if (strcmp(pathname, "/dev/dsp") != 0 &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue