KSaveFile
Julian Rockey
linux at jrockey.com
Sat Feb 21 17:01:34 GMT 2004
If I understand correctly KSaveFile helps atomically save data by first
creating a new temporary file, which is written to, and then deleting the
original and renaming the temporary file to the original name.
A side effect of this is that the original file's permissions are lost and
replaced with the default permissions for the user.
In practice this causes me trouble with KAddressBook std.vcf files which I
want to share between accounts (on a single machine). I chmod g+rw std.vcf
but as soon as one user edits the address box it's reset to rw-r---- so the
other then can't.
Should we be remembering the permissions of the original file and re-setting
them after the renaming? I can patch it if required.
cheers
Julian
More information about the kde-core-devel
mailing list