1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix trianglix file creation permissions.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-12-23 16:13:31 +01:00
parent 8f1353eb94
commit 7a3b4f06c5

View file

@ -1,6 +1,6 @@
/******************************************************************************* /*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2013, 2014. Copyright(C) Jonas 'Sortie' Termansen 2013, 2014, 2015.
This file is part of trianglix. This file is part of trianglix.
@ -641,12 +641,12 @@ void decide_runes::invoke()
if ( answer ) if ( answer )
{ {
unlink("/etc/rune-disable"); unlink("/etc/rune-disable");
close(::open("/etc/rune-enable", O_WRONLY | O_CREAT, 0666)); close(::open("/etc/rune-enable", O_WRONLY | O_CREAT, 0644));
} }
else else
{ {
unlink("/etc/rune-enable"); unlink("/etc/rune-enable");
close(::open("/etc/rune-disable", O_WRONLY | O_CREAT, 0666)); close(::open("/etc/rune-disable", O_WRONLY | O_CREAT, 0644));
} }
} }