KSaveFile

Julian Rockey linux at jrockey.com
Sun Feb 22 12:51:49 GMT 2004


On Saturday 21 Feb 2004 21:20, Richard Smith wrote:
> On Saturday 21 February 2004 9:13 pm, Waldo Bastian wrote:
> > On Sat February 21 2004 18:01, Julian Rockey wrote:
> > > ....
> > > 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.
>
> Resetting them before renaming (or even writing to the file at all) would
> be better, otherwise you still have a race where someone can read the file
> before it's moved and chmod'd (if, for instance, the file's not supposed to
> be group readable).
>
> Richard

OK to commit this? And to 3_2_BRANCH too?
cheers
Julian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksavefile.patch
Type: text/x-diff
Size: 1031 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040222/b57c5240/attachment.patch>


More information about the kde-core-devel mailing list