summaryrefslogtreecommitdiff
path: root/cmds-send.c
diff options
context:
space:
mode:
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>2013-09-04 23:22:29 +0800
committerChris Mason <chris.mason@fusionio.com>2013-10-16 08:20:41 -0400
commit59fd13f39adac690f8161a7028f1dfdd5f9d0a3e (patch)
tree709ecfeb7187a0788c35448e3d1c3a90fd1a636f /cmds-send.c
parentd9f612220fc5e8780abe512ea5eeb3eae931dd45 (diff)
Btrfs-progs: fix magic return value in cmds-send.c
If btrfs send return failure, we return 1´╝îotherwise 0 will be returned. Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-send.c')
-rw-r--r--cmds-send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-send.c b/cmds-send.c
index f7f98bca..374d0403 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[] = {