generators: introduce a common implementation for the log setup boilerplate
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "efivars.h"
|
||||
#include "generator.h"
|
||||
#include "log.h"
|
||||
#include "mkdir.h"
|
||||
#include "special.h"
|
||||
@@ -21,10 +22,7 @@ static const char *arg_dest = "/tmp";
|
||||
int main(int argc, char *argv[]) {
|
||||
const char *p;
|
||||
|
||||
log_set_prohibit_ipc(true);
|
||||
log_set_target(LOG_TARGET_AUTO);
|
||||
log_parse_environment();
|
||||
log_open();
|
||||
log_setup_generator();
|
||||
|
||||
umask(0022);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user