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:
Miao Xie 2010-09-09 13:47:32 +08:00 committed by Chris Mason
parent 076de67f5b
commit 2d428975f2
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}