diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-05-21 22:50:58 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-05-21 22:50:58 +0000 |
commit | 28405e3dcfba8b8b813678a79ca8194cccc7bb76 (patch) | |
tree | 692168798eb41ad24db7834f230e8e6e7a8e0b0d /src/modules | |
parent | 6be0c7526cf6451d4089b5123ceae6fa3911e512 (diff) |
big mumbo jumo of interleaved patches.
* Use seperate "state" and "config" paths
* Pass the fact that we are in system mode via an env var $PULSE_SYSTEM instead of as var in pa_core
* Properly check proc name when checking PID files. Don't check exename, because we cannot read that for other uids
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2480 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/module-protocol-stub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-protocol-stub.c b/src/modules/module-protocol-stub.c index 8bcc19b1..ca7a6c51 100644 --- a/src/modules/module-protocol-stub.c +++ b/src/modules/module-protocol-stub.c @@ -271,7 +271,7 @@ int pa__init(pa_module*m) { /* This socket doesn't reside in our own runtime dir but in * /tmp/.esd/, hence we have to create the dir first */ - if (pa_make_secure_parent_dir(u->socket_path, m->core->is_system_instance ? 0755 : 0700, (uid_t)-1, (gid_t)-1) < 0) { + if (pa_make_secure_parent_dir(u->socket_path, pa_in_system_mode() ? 0755 : 0700, (uid_t)-1, (gid_t)-1) < 0) { pa_log("Failed to create socket directory '%s': %s\n", u->socket_path, pa_cstrerror(errno)); goto fail; } |