]> sourceware.org Git - lvm2.git/commitdiff
cov: check setup_devices return code
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 22 Apr 2021 10:34:16 +0000 (12:34 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 23 Apr 2021 21:00:55 +0000 (23:00 +0200)
tools/pvck.c

index 6bc1c091ffd9d837dfab950e0ef6cf160ac95dae..74663ec43f65f515b7b42c876fbe2f6900815b0e 100644 (file)
@@ -3187,8 +3187,8 @@ int pvck(struct cmd_context *cmd, int argc, char **argv)
 
        if (argc == 1)
                setup_device(cmd, argv[0]);
-       else
-               setup_devices(cmd);
+       else if (!setup_devices(cmd))
+               return ECMD_FAILED;
 
        for (i = 0; i < argc; i++) {
                pv_name = argv[i];
This page took 0.043363 seconds and 5 git commands to generate.