projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3df5b18
)
change socket permission to allow !root users to connect
author
John Crispin
<blogic@openwrt.org>
Mon, 13 Apr 2015 16:31:28 +0000
(18:31 +0200)
committer
John Crispin
<blogic@openwrt.org>
Thu, 18 Jun 2015 17:01:17 +0000
(19:01 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
ubusd.c
patch
|
blob
|
history
diff --git
a/ubusd.c
b/ubusd.c
index c3edc70f5a95a53675b8a0e9337f1674b78d6dac..65b82cab3f79da491bd6f886c7674aea2d97957a 100644
(file)
--- a/
ubusd.c
+++ b/
ubusd.c
@@
-384,7
+384,7
@@
int main(int argc, char **argv)
}
unlink(ubus_socket);
- umask(01
77
);
+ umask(01
11
);
server_fd.fd = usock(USOCK_UNIX | USOCK_SERVER | USOCK_NONBLOCK, ubus_socket, NULL);
if (server_fd.fd < 0) {
perror("usock");