Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SystemNative_CopyFile(): move fchmod() call to top and add exception …
…for Android (mono#364) * SystemNative_CopyFile(): move fchmod() call to top and add exception for Android. The `fchmod()` call should happen first to ensure that the target file has the correct permissions prior to writing into it. On Android, we make an exception in case the `fchmod()` fails: if we can `fstat()` both the source and the target file and the target file's permissions are at least as restrictive as the source file's, then we allow the operation to proceed. See mono/mono#17133 for details. * Update pal_io.c
- Loading branch information