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:
parent
92319d74d4
commit
5894141885
|
@ -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[] = {
|
||||
|
|
Loading…
Reference in New Issue