fix two typos (pierre, have you been sleeping? next time please the comments wrong but the code right, not the other way round! ;-))

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1170 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2006-07-29 15:34:36 +00:00
parent a1e8b0968b
commit a7cf5e0f2d

View file

@ -82,7 +82,7 @@ int pa_limit_caps(void) {
cap_value_t nice_cap = CAP_SYS_NICE;
/* Only drop caps when called SUID */
if (getuid() != 0)
if (getuid() == 0)
return 0;
caps = cap_init();
@ -112,7 +112,7 @@ int pa_drop_caps(void) {
int r = -1;
/* Only drop caps when called SUID */
if (getuid() != 0)
if (getuid() == 0)
return 0;
caps = cap_init();