ECL-299 sendFile() had wrong permission-checking + didn't assign
permissions to owner