[Pkg-pulseaudio-devel] [SCM] pulseaudio packaging branch, patches, updated. upstream/0.9.8-5-gdcff2dd

neurocyte-guest at users.alioth.debian.org neurocyte-guest at users.alioth.debian.org
Thu Nov 29 21:13:08 UTC 2007


The branch, patches has been updated
       via  dcff2dd5a7b6ae0c0a4aa0944fdad9501eeb84d3 (commit)
      from  d91b6d26e698ad63761faf722850ad0cec52d4e4 (commit)


- Shortlog ------------------------------------------------------------
dcff2dd make sure to create ~/.pulse before using any configuration file from it

Summary of changes:
 src/pulsecore/core-util.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
Details of changes:

commit dcff2dd5a7b6ae0c0a4aa0944fdad9501eeb84d3
Author: Lennart Poettering <lennart at poettering.net>
Date:   Sat Nov 24 16:22:23 2007 +0000

    make sure to create ~/.pulse before using any configuration file from it
    
    git-svn-id: svn://svn.0pointer.net/pulseaudio/trunk@2078 fefdeb5f-60dc-0310-8127-8f9354f1896f

diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index c1b7f53..03c4a51 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -1129,8 +1129,15 @@ FILE *pa_open_config_file(const char *global, const char *local, const char *env
 
         if ((e = getenv("PULSE_CONFIG_PATH")))
             fn = lfn = pa_sprintf_malloc("%s/%s", e, local);
-        else if (pa_get_home_dir(h, sizeof(h)))
+        else if (pa_get_home_dir(h, sizeof(h))) {
+            char *d;
+
+            d = pa_sprintf_malloc("%s/.pulse", h);
+            mkdir(d, 0755);
+            pa_xfree(d);
+
             fn = lfn = pa_sprintf_malloc("%s/.pulse/%s", h, local);
+        }
 
         if (lfn) {
             FILE *f;

-- 
pulseaudio packaging



More information about the Pkg-pulseaudio-devel mailing list