From 59fd13f39adac690f8161a7028f1dfdd5f9d0a3e Mon Sep 17 00:00:00 2001 From: Wang Shilong Date: Wed, 4 Sep 2013 23:22:29 +0800 Subject: [PATCH] Btrfs-progs: fix magic return value in cmds-send.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If btrfs send return failure, we return 1,otherwise 0 will be returned. Signed-off-by: Wang Shilong Signed-off-by: David Sterba Signed-off-by: Chris Mason --- cmds-send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds-send.c b/cmds-send.c index f7f98bc..374d040 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -715,7 +715,7 @@ out: close(send.mnt_fd); free(send.root_path); subvol_uuid_search_finit(&send.sus); - return ret; + return !!ret; } const char * const cmd_send_usage[] = { -- 2.7.4