s3: Fix Coverity ID 585: NEGATIVE_RETURNS
authorVolker Lendecke <vl@samba.org>
Sun, 27 Mar 2011 17:27:26 +0000 (19:27 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 27 Mar 2011 20:22:10 +0000 (22:22 +0200)
source3/modules/vfs_crossrename.c

index 323ceb120bc3b386694fc6263d54fdd0044c81e7..ad8f45ac3f1d8e7381c0233653e073f87701ff3a 100644 (file)
@@ -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;
 
        /*