forked from mono/corefx
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. 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.
- Loading branch information
Martin Baulig
committed
Oct 28, 2019
1 parent
fb41040
commit 57fb181
Showing
1 changed file
with
36 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters