1
0
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:
Zdenek Kabelac 2010-11-29 10:58:32 +00:00
parent 8661190736
commit 99aacef51c
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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);