Btrfs-progs: fix magic return value in cmds-send.c
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Wed, 4 Sep 2013 15:22:29 +0000 (23:22 +0800)
committerChris Mason <chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:20:41 +0000 (08:20 -0400)
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>
cmds-send.c

index f7f98bc..374d040 100644 (file)
@@ -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[] = {