KSaveFile

Stephan Kulow coolo at kde.org
Tue Feb 24 08:59:35 GMT 2004


On Monday 23 February 2004 22:37, Julian Rockey wrote:
> On Monday 23 Feb 2004 13:48, Stephan Kulow wrote:
> 
> > Your patch is broken. Now KSaveFile won't create new files anymore as your
> > symlink clobbering prevention prevents all files. And I'm not sure if
> > QDir::canonialPath is the right way - this is a rather expensive call for
> > what you want to achieve. I reverted for now
> Ouch. Apologies.
> How about a loop using QFileInfo? It doesn't break creation of new files and 
> only does one lstat (in QFileInfo::doStat) if it's not a symlink.

I can't see something wrong with that version, even though I would write the while
loop in three lines.

Greetings, Stephan

-- 
There may be no I in TEAM, but a M and an E.




More information about the kde-core-devel mailing list