Skip to contentSkip to conversation

btrfs-progs: Corrected return values from btrfsctl.c

PATCH New Prasad Joshi 1 participant 1 message Oct 17, 2009 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs-progs: Corrected return values from btrfsctl.c

btrfsctl.c should return 0 if ioctl succeeds

---

btrfsctl.c +2 -3
index 66c4e89..d602fc4 100644
@@ -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