From c59a90c6c16177c8b87b31529318a308e9de04f7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 27 Mar 2008 21:20:07 +0000 Subject: merge r2078 from trunk git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/prepare-0.9.10@2137 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/pulsecore/core-util.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index fb032f23..61d04c2d 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; -- cgit