fix wrong return value
btrfsctl returns 1 if it does something successfully. this patch fixes this problem. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
This commit is contained in:
parent
076de67f5b
commit
2d428975f2
|
@ -260,8 +260,8 @@ int main(int ac, char **av)
|
|||
}
|
||||
printf("%s\n", BTRFS_BUILD_VERSION);
|
||||
if (ret)
|
||||
exit(0);
|
||||
else
|
||||
exit(1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue