diff --git a/polyp/caps.c b/polyp/caps.c index 258e13e41..d03ab14be 100644 --- a/polyp/caps.c +++ b/polyp/caps.c @@ -43,8 +43,9 @@ void pa_drop_root(void) { pa_log(__FILE__": dropping root rights.\n"); - setuid(uid); - seteuid(uid); + setreuid(uid, uid); +/* setuid(uid); + seteuid(uid);*/ } #ifdef HAVE_SYS_CAPABILITY_H diff --git a/polyp/main.c b/polyp/main.c index 25fb17413..5be4118d8 100644 --- a/polyp/main.c +++ b/polyp/main.c @@ -259,6 +259,7 @@ int main(int argc, char *argv[]) { close(1); } + chdir("/"); pa_log(__FILE__": sizeof(pa_usec_t) = %u\n", sizeof(pa_usec_t));