diff options
Diffstat (limited to 'send-stream.c')
-rw-r--r-- | send-stream.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/send-stream.c b/send-stream.c index a3628e45..1a498f3f 100644 --- a/send-stream.c +++ b/send-stream.c @@ -439,7 +439,8 @@ out: } int btrfs_read_and_process_send_stream(int fd, - struct btrfs_send_ops *ops, void *user) + struct btrfs_send_ops *ops, void *user, + int honor_end_cmd) { int ret; struct btrfs_send_stream s; @@ -476,7 +477,8 @@ int btrfs_read_and_process_send_stream(int fd, if (ret < 0) goto out; if (ret) { - ret = 0; + if (!honor_end_cmd) + ret = 0; goto out; } } |