projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aee4a37
)
work around bug in firefox which apparently misuses access() as NULL pointer test...
author
Lennart Poettering
<lennart@poettering.net>
Thu, 31 Aug 2006 15:31:33 +0000
(15:31 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 31 Aug 2006 15:31:33 +0000
(15:31 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1352
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/utils/padsp.c
patch
|
blob
|
history
diff --git
a/src/utils/padsp.c
b/src/utils/padsp.c
index
c765b69
..
ddb732f
100644
(file)
--- 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 &&