git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08e4e7f
)
s3: Fix Coverity ID 585: NEGATIVE_RETURNS
author
Volker Lendecke
<vl@samba.org>
Sun, 27 Mar 2011 17:27:26 +0000
(19:27 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sun, 27 Mar 2011 20:22:10 +0000
(22:22 +0200)
source3/modules/vfs_crossrename.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_crossrename.c
b/source3/modules/vfs_crossrename.c
index 323ceb120bc3b386694fc6263d54fdd0044c81e7..ad8f45ac3f1d8e7381c0233653e073f87701ff3a 100644
(file)
--- 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;
/*