KDE linuxisms may confuse CIFS and will cause trouble on Windows

Thiago Macieira thiago at kde.org
Thu Jan 4 22:39:12 GMT 2007


Jaison Lee wrote:
>Wow. That sucks. This is like a standard practice on Linux. A lot of
>code uses (Q/K)TemporaryFile to generate a name and then passes that
>filename to someplace else. Not a problem so long as the original
>handle stays open until the new file is created. If you remove the
>temporary file and then create a new file afterwards it leaves a
>window open whereby (I believe) certain security attacks can be made.
>Everything just gets messy.

That's when you use QTemporaryFile to create a temporary non-file (a dir, 
a symlink, whatever). You shouldn't do that: QTemporaryFile is for files 
only.

If we need temporary dirs, we need a method for that.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070104/75715ae1/attachment.sig>


More information about the kde-core-devel mailing list