* [PATCH] btrfs-progs: Corrected return values from btrfsctl.c
@ 2009-10-17 9:22 Prasad Joshi
0 siblings, 0 replies; only message in thread
From: Prasad Joshi @ 2009-10-17 9:22 UTC (permalink / raw)
To: linux-btrfs
btrfsctl.c should return 0 if ioctl succeeds
Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com>
---
diff --git a/btrfsctl.c b/btrfsctl.c
index 66c4e89..d602fc4 100644
--- a/btrfsctl.c
+++ b/btrfsctl.c
@@ -232,8 +232,8 @@ int main(int ac, char **av)
}
printf("%s\n", BTRFS_BUILD_VERSION);
if (ret)
- exit(0);
- else
exit(1);
+ else
+ exit(0);
}
--
v0.19-3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-17 9:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-17 9:22 [PATCH] btrfs-progs: Corrected return values from btrfsctl.c Prasad Joshi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox