From: Wang Shilong <[email protected]> If btrfs send return failure, we return 1,otherwise 0 will be returned.
Signed-off-by: Wang Shilong <[email protected]> --- 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[] = { -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
