| 1 | --- pulseaudio-0.9.5/src/utils/padsp.c 2006-08-19 00:29:26.000000000 +0300 |
|---|
| 2 | +++ pulseaudio-0.9.5-alon/src/utils/padsp.c 2006-08-29 01:36:30.010620500 +0300 |
|---|
| 3 | @@ -2122,7 +2122,12 @@ |
|---|
| 4 | |
|---|
| 5 | int access(const char *pathname, int mode) { |
|---|
| 6 | debug(DEBUG_LEVEL_VERBOSE, __FILE__": access(%s)\n", pathname); |
|---|
| 7 | - |
|---|
| 8 | + if (pathname == NULL) { |
|---|
| 9 | + // according to the man page from ubuntu the closest error condition: |
|---|
| 10 | + // EFAULT pathname points outside your accessible address space |
|---|
| 11 | + errno = EFAULT; |
|---|
| 12 | + return -1; |
|---|
| 13 | + } |
|---|
| 14 | if (strcmp(pathname, "/dev/dsp") != 0 && |
|---|
| 15 | strcmp(pathname, "/dev/adsp") != 0 && |
|---|
| 16 | strcmp(pathname, "/dev/sndstat") != 0 && |
|---|