Merge "Fix various fatals and IDEA warnings in CopyFileBackend"