diff options
-rw-r--r-- | source3/modules/vfs_crossrename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_crossrename.c b/source3/modules/vfs_crossrename.c index 323ceb120b..ad8f45ac3f 100644 --- a/source3/modules/vfs_crossrename.c +++ b/source3/modules/vfs_crossrename.c @@ -80,7 +80,7 @@ static int copy_reg(const char *source, const char *dest) #endif goto err; - if (transfer_file(ifd, ofd, (size_t)-1) == -1) + if (transfer_file(ifd, ofd, source_stats.st_ex_size) == -1) goto err; /* |