1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix FAILED_INCONSISTENT case in vg_backup_single - typeo on 'if' condition.

In vg_backup_single, we should error out if we vg_read_error(vg) and the
error code we received was anything other than FAILED_INCONSISTENT.
Original code contained an error because C operator precedence.
Note - this was part of the vg_read() so no WHATS_NEW entry neceesary.


Author: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
Dave Wysochanski 2009-07-15 03:30:04 +00:00
parent 213c999a92
commit 1a4366df60

View File

@ -54,7 +54,7 @@ static int vg_backup_single(struct cmd_context *cmd, const char *vg_name,
char **last_filename = (char **)handle;
char *filename;
if (vg_read_error(vg) && !vg_read_error(vg) == FAILED_INCONSISTENT)
if (vg_read_error(vg) && (vg_read_error(vg) != FAILED_INCONSISTENT))
return ECMD_FAILED;
if (arg_count(cmd, file_ARG)) {