summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polyp/caps.c5
-rw-r--r--polyp/main.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/polyp/caps.c b/polyp/caps.c
index 258e13e4..d03ab14b 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 25fb1741..5be4118d 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));