[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCHES] fix tmpnam() issue for kdelibs
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-11-22 15:24:49
[Download RAW message or body]

On Wednesday 22 November 2000 09:31, Stephan Kulow wrote:
> Kevin Lo wrote:
> > 
> > Hi,
> > 
> > The  following patches is to fix tmpnam() issue for
> > kdesu/kdesu_stub.c and libkmid/midfile.cc in kdelibs.
> > I will commit it if no problem, thanks.
> > 
> Hmm, can't we centralice this a bit more? I don't like
> the #ifdefs everywhere. 

Other bits of KDE simply use KTempFile, save the name, and delete 
the KTempFile object. It's not 100% safe for race conditions but it's already
better than tmpnam. The 100% safe solution is to actually _use_ KTempFile.

-- 
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic