mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
Fix missing #include for copyfile()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
5e040449c4
commit
0669a9cb81
1 file changed
+3
-2
+3
-2
@@ -26,16 +26,17 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "finit.h"
|
||||
#include "libite/lite.h"
|
||||
#include "helpers.h"
|
||||
#include "plugin.h"
|
||||
|
||||
static void setup(void *UNUSED(arg))
|
||||
{
|
||||
#ifdef RANDOMSEED
|
||||
copyfile(RANDOMSEED, "/dev/urandom", 0);
|
||||
copyfile(RANDOMSEED, "/dev/urandom", 0, 0);
|
||||
unlink(RANDOMSEED);
|
||||
umask(077);
|
||||
copyfile("/dev/urandom", RANDOMSEED, 4096);
|
||||
copyfile("/dev/urandom", RANDOMSEED, 4096, 0);
|
||||
umask(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user