diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-03-27 21:20:07 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-03-27 21:20:07 +0000 |
commit | c59a90c6c16177c8b87b31529318a308e9de04f7 (patch) | |
tree | a824bb87d64a684c842284ce26ca9b60c7d53c57 | |
parent | 05a7f5d5bfa1c211725a75610919c8a2c0e0e89a (diff) |
merge r2078 from trunk
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/prepare-0.9.10@2137 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | src/pulsecore/core-util.c | 9 |
1 files changed, 8 insertions, 1 deletions
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; |