mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 02:32:16 +01:00
hastd(8) assumes it has no extra file descriptors opened
and aborts otherwise, so call closefrom() early. PR: 227461 MFC after: 2 weeks
This commit is contained in:
parent
b712e3e343
commit
1c86e81196
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=368148
@ -1222,6 +1222,7 @@ main(int argc, char *argv[])
|
||||
pjdlog_init(PJDLOG_MODE_STD);
|
||||
pjdlog_debug_set(debuglevel);
|
||||
|
||||
closefrom(MAX(MAX(STDIN_FILENO, STDOUT_FILENO), STDERR_FILENO) + 1);
|
||||
g_gate_load();
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user