mirror of
https://github.com/troglobit/finit.git
synced 2026-11-14 19:03:16 +00:00
Fix #46: Set correct umask() before makedir() and chmod()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
d2846b805a
commit
e03b358ff0
3 files changed
+12
No files matched your search
@@ -31,6 +31,8 @@
|
||||
|
||||
static void setup(void *UNUSED(arg))
|
||||
{
|
||||
umask(0);
|
||||
|
||||
_d("Starting D-Bus ...");
|
||||
makedir("/var/run/dbus", 0755);
|
||||
makedir("/var/lock/subsys", 0755);
|
||||
@@ -38,6 +40,8 @@ static void setup(void *UNUSED(arg))
|
||||
run("dbus-uuidgen --ensure");
|
||||
erase("/var/run/dbus/pid");
|
||||
run_interactive("dbus-daemon --system", "Starting D-Bus");
|
||||
|
||||
umask(022);
|
||||
}
|
||||
|
||||
static plugin_t plugin = {
|
||||
|
||||
Reference in new issue
Block a user