diff --git a/commands/ubi.c b/commands/ubi.c index 5e27584..de5633c 100644 --- a/commands/ubi.c +++ b/commands/ubi.c @@ -82,7 +82,7 @@ close(fd_vol); error_img: close(fd_img); - return ret; + return ret ? 1 : 0; }