From 46c2378f0065eaea882569831247e7295cca287b Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 19 Dec 2013 13:38:33 +0100 Subject: [PATCH] android: Set umask in system-emulator This will make sure files are created with proper permissions so Android daemon doesn't have to handle that. On Android umask is set by init. --- android/system-emulator.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/system-emulator.c b/android/system-emulator.c index 24f274121..299de0f25 100644 --- a/android/system-emulator.c +++ b/android/system-emulator.c @@ -37,6 +37,8 @@ #include #include #include +#include +#include #include "monitor/mainloop.h" @@ -169,5 +171,7 @@ int main(int argc, char *argv[]) mainloop_add_fd(fd, EPOLLIN, system_socket_callback, NULL, NULL); + umask(0177); + return mainloop_run(); } -- 2.47.3