KSaveFile

Oswald Buddenhagen ossi at kde.org
Sun Feb 22 13:08:33 GMT 2004


On Sun, Feb 22, 2004 at 02:02:43PM +0100, Oswald Buddenhagen wrote:
> On Sun, Feb 22, 2004 at 12:51:49PM +0000, Julian Rockey wrote:
> > --- ksavefile.cpp	30 Apr 2003 11:04:44 -0000	1.10
> > +++ ksavefile.cpp	22 Feb 2004 12:43:21 -0000
> > @@ -53,6 +53,19 @@ KSaveFile::KSaveFile(const QString &file
> >     if (mTempFile.create(filename, QString::fromLatin1(".new"), mode))
> >     {
> >        mFileName = filename; // Set filename upon success
> > +         chmod(QFile::encodeName(mTempFile.name()), stat_buf.st_mode );
> >     }
> >
> how about changing the mode parameter of the create call instead? ;)
> 
ok, that was a stupid suggestion. create does its best to apply the
umask to the mode parameter, making it utterly useless for that purpose
...

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




More information about the kde-core-devel mailing list