From 31802d9e7522159b99bea31ba3023777aec0d4bf Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 22 Jan 2013 13:36:47 -0800 Subject: [PATCH] btrfs-progs: don't return -EBUSY from main() -EBUSY is platform dependent and is even less reliable when truncated to a u8. Just return 1 on error. Signed-off-by: Zach Brown --- restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore.c b/restore.c index 3fa8769..b544770 100644 --- a/restore.c +++ b/restore.c @@ -828,7 +828,7 @@ int main(int argc, char **argv) return ret; } else if (ret) { fprintf(stderr, "%s is currently mounted. Aborting.\n", argv[optind]); - return -EBUSY; + return 1; } root = open_fs(argv[optind], tree_location, super_mirror); -- 2.7.4