1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-13 17:18:32 +03:00

vgchange: fix error code in error path

This rather hard to hit error path used wrong return value to signal
real error.
This commit is contained in:
Zdenek Kabelac 2018-06-13 15:57:51 +02:00
parent 4afb5971b9
commit 4479228d32

View File

@ -199,7 +199,7 @@ int vgchange_activate(struct cmd_context *cmd, struct volume_group *vg,
strcmp(vg->system_id, cmd->system_id) &&
do_activate) {
log_error("Cannot activate LVs in a foreign VG.");
return ECMD_FAILED;
return 0;
}
/*