summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-27 19:27:26 +0200
committerVolker Lendecke <vl@samba.org>2011-03-27 22:22:10 +0200
commit30085eb7927b48ed4f133d25a9da74dbb83bcb37 (patch)
tree8ce009b6ec872de79bb047ec1c30427cfaf46016
parent08e4e7fef7bda8f4e9e3b7da8d0596dfca289c59 (diff)
downloadsamba-30085eb7927b48ed4f133d25a9da74dbb83bcb37.tar.gz
samba-30085eb7927b48ed4f133d25a9da74dbb83bcb37.tar.bz2
samba-30085eb7927b48ed4f133d25a9da74dbb83bcb37.zip
s3: Fix Coverity ID 585: NEGATIVE_RETURNS
-rw-r--r--source3/modules/vfs_crossrename.c2
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;
/*