diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2010-11-29 10:58:32 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2010-11-29 10:58:32 +0000 |
commit | 99aacef51c17ca27ebe85076f87b99609b293b6f (patch) | |
tree | 3236a865e11e4fd135f66275a7fcb7aa4acc5868 /lib/commands | |
parent | 86611907367a87c0391fcf2f6334bcc179028623 (diff) | |
download | lvm2-99aacef51c17ca27ebe85076f87b99609b293b6f.tar.gz lvm2-99aacef51c17ca27ebe85076f87b99609b293b6f.tar.xz lvm2-99aacef51c17ca27ebe85076f87b99609b293b6f.zip |
Fix check for empty system_dir
Fixing check for zero length system_dir string.
Diffstat (limited to 'lib/commands')
-rw-r--r-- | lib/commands/toolcontext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c index f714cdf3..8dd7d6f8 100644 --- a/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c @@ -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); |