Btrfs-progs: fix magic return value in cmds-receive.c

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>
This commit is contained in:
Wang Shilong 2013-09-04 23:22:27 +08:00 committed by Chris Mason
parent 92319d74d4
commit 5894141885
1 changed files with 2 additions and 2 deletions

View File

@ -951,13 +951,13 @@ int cmd_receive(int argc, char **argv)
receive_fd = open(fromfile, O_RDONLY | O_NOATIME);
if (receive_fd < 0) {
fprintf(stderr, "ERROR: failed to open %s\n", fromfile);
return -errno;
return 1;
}
}
ret = do_receive(&r, tomnt, receive_fd);
return ret;
return !!ret;
}
const char * const cmd_receive_usage[] = {