GNU bug report logs -
#18316
[PATCH] warn on too large file copies
Previous Next
Reported by: adamjsho <at> gmail.com
Date: Fri, 22 Aug 2014 15:58:02 UTC
Severity: normal
Tags: fixed, patch
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
When files are being copied, they can hit the following loop:
while (max_n_read)
{
...
// return true if file finishes copying
// return false if error occurs
// copy some file
// deduct bytes copied from max_n_read
...
}
return true;
If max_n_read reaches 0, the copy does not return a warning or a failure
but instead returns that the copy completed successfully.
I believe when copying files as large as these, if the maximum transfer
were to be reached then the copy should not return false (as this will
delete the failed destination file), but instead produce a warning and
return true.
I have attached a patch against the git master. Please review and
consider it's inclusion.
I apologise if there is an issue with this report as it is my first time
submitting a patch to coreutils.
Thanks,
Adam Shore
[file_too_large_warning.patch (text/x-patch, attachment)]
This bug report was last modified 6 years and 310 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.