mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-14 04:59:04 +03:00
Always call init_log() to initialise logging defaults.
This commit is contained in:
parent
9a3761e86e
commit
f7e62d9f81
14
tools/lvm.c
14
tools/lvm.c
@ -1111,16 +1111,14 @@ static int init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (stat(config_file, &info) != -1) {
|
||||
/* we've found a config file */
|
||||
if (!read_config(cmd->cf, config_file)) {
|
||||
log_error("Failed to load config file %s", config_file);
|
||||
return 0;
|
||||
}
|
||||
|
||||
__init_log(cmd->cf);
|
||||
if (stat(config_file, &info) != -1 &&
|
||||
!read_config(cmd->cf, config_file)) {
|
||||
log_error("Failed to load config file %s", config_file);
|
||||
return 0;
|
||||
}
|
||||
|
||||
__init_log(cmd->cf);
|
||||
|
||||
_default_settings.umask = find_config_int(cmd->cf->root,
|
||||
"global/umask", '/',
|
||||
DEFAULT_UMASK);
|
||||
|
Loading…
x
Reference in New Issue
Block a user