projects
/
project
/
rpcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa53571
)
Set umask to 0077 on daemon startup to prevent libuci from making world-readable...
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 5 Sep 2013 14:14:30 +0000
(16:14 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 5 Sep 2013 14:14:30 +0000
(16:14 +0200)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 0bb06cea61089ebbbc02215e7d7887d035d80517..75f5cee0fa15195f243f5c3e41394389b5516f38 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-77,6
+77,8
@@
int main(int argc, char **argv)
if (stat("/var/run/rpcd", &s))
mkdir("/var/run/rpcd", 0700);
+ umask(0077);
+
signal(SIGPIPE, SIG_IGN);
signal(SIGHUP, handle_signal);
signal(SIGUSR1, handle_signal);