]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fix incorrect error status from --examine --scan
authorNeil Brown <neilb@suse.de>
Fri, 19 May 2006 03:48:49 +0000 (03:48 +0000)
committerNeil Brown <neilb@suse.de>
Fri, 19 May 2006 03:48:49 +0000 (03:48 +0000)
Signed-off-by: Neil Brown <neilb@suse.de>
Examine.c

index b4425e5a9d5f9d9f10f3377ef992992be1ba0355..21e9935ece6a4f276459ce2e990ab85679f90e73 100644 (file)
--- a/Examine.c
+++ b/Examine.c
@@ -72,10 +72,11 @@ int Examine(mddev_dev_t devlist, int brief, int scan, int SparcAdjust, struct su
 
                fd = dev_open(devlist->devname, O_RDONLY);
                if (fd < 0) {
-                       if (!scan)
+                       if (!scan) {
                                fprintf(stderr,Name ": cannot open %s: %s\n",
                                        devlist->devname, strerror(errno));
-                       err = 1;
+                               err = 1;
+                       }
                }
                else {
                        if (!st)