X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd.c;h=59dee3e6d92acb2a0bfb9fd5311aeddb7f25bd1c;hp=03215b33525f9011d0a681dfb185ae085292ccd4;hb=8ea96670367e5dd23988b51ee4f0f790393effaf;hpb=42bc27ae38d92f4fe11872b0f9d57f8d3578dcfe diff --git a/ubusd.c b/ubusd.c index 03215b3..59dee3e 100644 --- a/ubusd.c +++ b/ubusd.c @@ -12,6 +12,7 @@ */ #include +#include #include #include #include @@ -321,6 +322,7 @@ int main(int argc, char **argv) } unlink(ubus_socket); + umask(0177); server_fd.fd = usock(USOCK_UNIX | USOCK_SERVER | USOCK_NONBLOCK, ubus_socket, NULL); if (server_fd.fd < 0) { perror("usock");