mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3: Fix Coverity ID 585: NEGATIVE_RETURNS
This commit is contained in:
parent
08e4e7fef7
commit
30085eb792
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user