diff options
Diffstat (limited to 'audio/pulseaudio/files/patch-src_pulsecore_shm.c')
-rw-r--r-- | audio/pulseaudio/files/patch-src_pulsecore_shm.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/audio/pulseaudio/files/patch-src_pulsecore_shm.c b/audio/pulseaudio/files/patch-src_pulsecore_shm.c index 549091ccc487..4dfa3a3a9392 100644 --- a/audio/pulseaudio/files/patch-src_pulsecore_shm.c +++ b/audio/pulseaudio/files/patch-src_pulsecore_shm.c @@ -1,7 +1,7 @@ ---- src/pulsecore/shm.c.orig 2007-10-28 15:13:53.000000000 -0400 -+++ src/pulsecore/shm.c 2008-01-01 16:19:19.000000000 -0500 -@@ -80,7 +80,7 @@ struct shm_marker { - }; +--- src/pulsecore/shm.c.orig 2009-08-19 10:17:06.000000000 +0800 ++++ src/pulsecore/shm.c 2009-11-11 21:25:03.000000000 +0800 +@@ -91,7 +91,7 @@ + #define SHM_MARKER_SIZE PA_ALIGN(sizeof(struct shm_marker)) static char *segment_name(char *fn, size_t l, unsigned id) { - pa_snprintf(fn, l, "/pulse-shm-%u", id); @@ -9,3 +9,12 @@ return fn; } +@@ -142,7 +142,7 @@ + pa_random(&m->id, sizeof(m->id)); + segment_name(fn, sizeof(fn), m->id); + +- if ((fd = shm_open(fn, O_RDWR|O_CREAT|O_EXCL, mode & 0444)) < 0) { ++ if ((fd = shm_open(fn, O_RDWR|O_CREAT|O_EXCL, mode & 0644)) < 0) { + pa_log("shm_open() failed: %s", pa_cstrerror(errno)); + goto fail; + } |