[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Q: chmod usage.
From: Thomas Zander <zander () planescape ! com>
Date: 2002-02-26 23:39:28
[Download RAW message or body]
I ran into the following line;
chmod("/etc/lisarc",S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
Since that string is used a lot of times in the class I made it a QString to
make it easier to maintain.
is the following change correct?
- chmod("/etc/lisarc",S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
+ chmod(QFile::encodeName(m_configFilename),S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
I just committed this in kdenetwork/lanbrowsing, and this part I was not completely
sure about..
--
Thomas Zander zander@earthling.net
The only thing worse than failure is the fear of trying something new
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic