KSaveFile

Julian Rockey linux at jrockey.com
Mon Feb 23 21:14:30 GMT 2004


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.
cheers
Julian

>
> Greetings, Stephan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksavefile-3.patch
Type: text/x-diff
Size: 1666 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040223/c1342970/attachment.patch>


More information about the kde-core-devel mailing list