projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
076de67
)
fix wrong return value
author
Miao Xie
<miaox@cn.fujitsu.com>
Thu, 9 Sep 2010 05:47:32 +0000
(13:47 +0800)
committer
Chris Mason
<chris.mason@oracle.com>
Fri, 24 Sep 2010 00:26:49 +0000
(20:26 -0400)
btrfsctl returns 1 if it does something successfully.
this patch fixes this problem.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
btrfsctl.c
patch
|
blob
|
history
diff --git
a/btrfsctl.c
b/btrfsctl.c
index
a524e33
..
92bdf39
100644
(file)
--- a/
btrfsctl.c
+++ b/
btrfsctl.c
@@
-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;
}