E17: fix race condition when copying a file
authorVincent Torri <vincent.torri@gmail.com>
Sat, 21 Jul 2012 18:20:19 +0000 (18:20 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Sat, 21 Jul 2012 18:20:19 +0000 (18:20 +0000)
commit72c6b4e4a3e7b116b52be407aea6c3a31bb12252
tree38da1c47d8f80edddddbd76e7431e1511f8fca3a
parent6b430e44894af24ff02c90f75f127f1eb95e2fed
E17: fix race condition when copying a file

during the copy, the file can be accessed by users.
See http://cwe.mitre.org/data/definitions/689.html
So we apply the access rights after the creation of
the dest file.

Patch by Maxime Villard

SVN revision: 74284
src/bin/e_fm_op.c