From 2aa36209eb0087228391b9b01b6f03a6875bad9f Mon Sep 17 00:00:00 2001 From: David Teigland Date: Tue, 21 Apr 2020 09:33:56 -0500 Subject: [PATCH] vgrename: fix error value when name exists --- tools/vgrename.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/vgrename.c b/tools/vgrename.c index 8b76d0b84..f442f731f 100644 --- a/tools/vgrename.c +++ b/tools/vgrename.c @@ -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;