core
core copied to clipboard
ENT-12033: Made multiple changed to increase robustness of remote file copying
Initially I was trying to reproduce a bug reported in ENT-12033. However, I was not able to reproduce it. While statically analyzing the code, I made some changes to make it more robust.
- Added doc string to CopyRegularFileNet
- Added assert to check return code of snprintf
- Fixed typo in comment for CopyRegularFileNet
- Removed check for filename too long
- Removed unnecessary assignment of NULL-byte to buffer
- Check return code of sscanf
- Added sanity check in CopyRegularFileNet
- Allocate receive buffer on stack instead of heap
- cf-serverd now stats file every read on network transition
@cf-bottom Jenkins please :)