summaryrefslogtreecommitdiffstats
path: root/src/daemon
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-07-20 00:21:50 +0000
committerPierre Ossman <ossman@cendio.se>2006-07-20 00:21:50 +0000
commita3e7595ac179ca32bc5c876b25a4e80171c3d917 (patch)
treed7c53bd36fdbec795a5071006dc7a32426c740c0 /src/daemon
parent7ba93ebae21742522bfe430e229a859370a888d1 (diff)
Make -1 mean "current group/user" so that some platform dependent calls
can be centralised. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1113 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index cf655ee0..948b2055 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -249,7 +249,7 @@ static int create_runtime_dir(void) {
* per-user mode. We create the runtime directory somewhere in
* /tmp/ with the current UID/GID */
- if (pa_make_secure_dir(fn, 0700, getuid(), getgid()) < 0) {
+ if (pa_make_secure_dir(fn, 0700, (uid_t)-1, (gid_t)-1) < 0) {
pa_log(__FILE__": Failed to create '%s': %s", fn, pa_cstrerror(errno));
return -1;
}