]> sourceware.org Git - lvm2.git/commitdiff
vgrename: fix error value when name exists
authorDavid Teigland <teigland@redhat.com>
Tue, 21 Apr 2020 14:33:56 +0000 (09:33 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 21 Apr 2020 14:33:56 +0000 (09:33 -0500)
tools/vgrename.c

index 8b76d0b846785a85bd00931db939b062226ce87e..f442f731fd4a96d3bbe87ee29f153ed5307d01b5 100644 (file)
@@ -183,7 +183,7 @@ int vgrename(struct cmd_context *cmd, int argc, char **argv)
        vg_name_new = skip_dev_dir(cmd, argv[1], NULL);
 
        if (!validate_vg_rename_params(cmd, vg_name_old, vg_name_new))
-               return_0;
+               return_ECMD_FAILED;
 
        if (!(vp.vg_name_old = dm_pool_strdup(cmd->mem, vg_name_old)))
                return_ECMD_FAILED;
This page took 0.028732 seconds and 5 git commands to generate.