1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +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 3eff3aa4f8
commit 70b159d145

View File

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