gfile: Limit access to files when copying

file_copy_fallback creates new files with default permissions and
set the correct permissions after the operation is finished. This
might cause that the files can be accessible by more users during
the operation than expected. Use G_FILE_CREATE_PRIVATE for the new
files to limit access to those files.
10 jobs for wip/oholy/copy-permissions in 11 minutes and 48 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #307240
cross-android_api21_arm64

00:02:24

passed #307241
cross-android_api28_arm64

00:01:28

passed #307242
cross-mingw64

00:03:18

passed #307238
debian-stable-x86_64

00:03:19

passed #307237
fedora-x86_64

00:05:52

passed #307245
freebsd-11
freebsd-11-x86_64

00:03:53

passed #307239
G_DISABLE_ASSERT

00:02:12

passed #307243
win32
msys2-mingw32

00:08:08

passed #307244
win32
vs2017-x64

00:09:40

 
  Coverage
passed #307246
coverage

00:02:05

75.3%