summaryrefslogtreecommitdiffstats
path: root/polyp/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-10-29 13:50:25 +0000
committerLennart Poettering <lennart@poettering.net>2004-10-29 13:50:25 +0000
commit4e5c44de30de40b80354820f8ac1738a9636515a (patch)
tree585946b75ee291193a969f5a45ce34b6b6612f77 /polyp/main.c
parente34c65d0427d7efc4d21a1df877bb5e4acc73154 (diff)
use setreuid() instead of setuid()/seteuid() when dropping root
chdir to / on daemon startup (both are suggestions by alan cox) git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@267 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/main.c')
-rw-r--r--polyp/main.c1
1 files changed, 1 insertions, 0 deletions
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));