mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix check for empty system_dir
Fixing check for zero length system_dir string.
This commit is contained in:
parent
8661190736
commit
99aacef51c
@ -1,5 +1,6 @@
|
||||
Version 2.02.78 -
|
||||
====================================
|
||||
Fix test for empty system_dir string in _init_backup().
|
||||
Certain lvconvert invocations are now required to be done in two steps.
|
||||
Fix missing context desctruction in err path of lvm1 fallback in lvm2_main().
|
||||
Fix memory leak in error path of parse_loop_device_name() from dmsetup.
|
||||
|
@ -1036,7 +1036,7 @@ static int _init_backup(struct cmd_context *cmd)
|
||||
char default_dir[PATH_MAX];
|
||||
const char *dir;
|
||||
|
||||
if (!cmd->system_dir) {
|
||||
if (!cmd->system_dir[0]) {
|
||||
log_warn("WARNING: Metadata changes will NOT be backed up");
|
||||
backup_init(cmd, "", 0);
|
||||
archive_init(cmd, "", 0, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user