summaryrefslogtreecommitdiffstats
path: root/src/daemon/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-02-24 17:14:23 +0000
committerLennart Poettering <lennart@poettering.net>2006-02-24 17:14:23 +0000
commit435897741505fbdac30002b02c55a528f6ec8a40 (patch)
tree650825f8515a7e4593b67a0106c7b92931101a79 /src/daemon/main.c
parent25bcc106d02b29db0b39e18c8519e4ca51d81310 (diff)
* Add new "auth-group=" parameter to protocol-native-unix
* Rename "public=" argument of protocol-{esound,native} to "auth-anonymous" git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@601 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/daemon/main.c')
-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 4b972fe2..8457916a 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -160,7 +160,7 @@ int main(int argc, char *argv[]) {
#ifdef HAVE_GETUID
suid_root = getuid() != 0 && geteuid() == 0;
- if (suid_root && (pa_uid_in_group("realtime", &gid) <= 0 || gid >= 1000)) {
+ if (suid_root && (pa_own_uid_in_group("realtime", &gid) <= 0 || gid >= 1000)) {
pa_log_warn(__FILE__": WARNING: called SUID root, but not in group 'realtime'.");
pa_drop_root();
}