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:
parent
8f1353eb94
commit
7a3b4f06c5
1 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue