KSaveFile
Waldo Bastian
bastian at kde.org
Sat Feb 21 21:13:36 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sat February 21 2004 18:01, Julian Rockey wrote:
> 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.
Probably a good idea, yes.
Cheers,
Waldo
- --
bastian at kde.org -=|[ SUSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAN8oAN4pvrENfboIRAmDvAJ9/bRb0AG13tXTDvcApuvr1vpFbkQCfVcS8
T7tZOn/oCvbf5xyYq8nEyWc=
=POep
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list