[PATCH] Potential unsafe /tmp usage: kapplication

Waldo Bastian bastian at kde.org
Sun Nov 17 14:03:10 GMT 2002


kapp->tempSaveName() will return paths in /tmp if it fails to create a 
~/autosave directory. Such paths are likely to cause well-known /tmp problems 
in applications that use kapp->tempSaveName().

The following patch uses the standard KDE tmp-resource, normally 
/tmp/kde-$USER/, as a fallback instead of /tmp.

Cheers,
Waldo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kapp_tmp.diff
Type: text/x-diff
Size: 1103 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021117/6c9cc7ae/attachment.diff>


More information about the kde-core-devel mailing list