]> sourceware.org Git - lvm2.git/commitdiff
vgchange: fix error code in error path
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 13 Jun 2018 13:57:51 +0000 (15:57 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 14 Jun 2018 20:02:01 +0000 (22:02 +0200)
This rather hard to hit error path used wrong return value to signal
real error.

tools/vgchange.c

index 891f22a14c6a79e2d6bd484531eced55fbfc769d..b608d8764956e980925e87906a90930cdff491b5 100644 (file)
@@ -187,7 +187,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;
        }
 
        /*
This page took 0.04205 seconds and 5 git commands to generate.