Skip to contentSkip to conversation

btrfs-progs: fix wrong return value

PATCH New Miao Xie 1 participant 1 message Mar 25, 2010 Btrfs file system

lore
Share & tools
lore

Miao Xie

author
#0 lore raw

PATCH 3/3 btrfs-progs: fix wrong return value

From: Miao Xie <[email protected]>

btrfsctl returns 1 if it does something successfully. this patch fixes this problem.

---
 btrfsctl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
btrfsctl.c +2 -2
index be6bf25..e2aae17 100644
@@ -249,8 +249,8 @@ int main(int ac, char **av)
 	}
 	printf("%s\n", BTRFS_BUILD_VERSION);
 	if (ret)
-		exit(0);
-	else
 		exit(1);
+
+	return 0;
 }
 
Signature · 1 line
1.6.5.2