From: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> Signed-off-by: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> --- Grow.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Grow.c b/Grow.c index b80f202..9ee22e0 100644 --- a/Grow.c +++ b/Grow.c @@ -174,7 +174,7 @@ int Grow_Add_device(char *devname, int fd, char *newdev) return 1; } fd2 = dev_open(dv, O_RDWR); - if (!fd2) { + if (fd2 < 0) { fprintf(stderr, Name ": cannot open device file %s\n", dv); close(nfd); free(st); -- 1.7.6.4 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html