Do not use FileUtils.set_contents() also known as g_file_set_contents() for overwriting files, because it resets file permissions to default permissive policy and can potentially expose files that were made private. GIO function document.file.replace_contents() should be used instead.
Do not use FileUtils. set_contents( ) also known as g_file_ set_contents( ) for overwriting files, because it resets file permissions to default permissive policy and can potentially expose files that were made private. GIO function document. file.replace_ contents( ) should be used instead.
See http:// valadoc. org/#!api= gio-2.0/ GLib.File. replace_ contents for documentation. There's also replace_ contents_ async() which can be useful. bazaar. launchpad. net/~elementary -apps/scratch/ scratch/ revision/ 782 in Tab.Vala
An example of transitioning code to that function can be found in http://
I'm marking all projects in which I've grepped this function as affected.