Author: troll Date: Sun Feb 20 16:04:03 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- prevent malfunctions when HOME_ETC variable is empty
---- Files affected:
SOURCES:
psi-home_etc.patch (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SOURCES/psi-home_etc.patch
diff -u SOURCES/psi-home_etc.patch:1.5 SOURCES/psi-home_etc.patch:1.6
--- SOURCES/psi-home_etc.patch:1.5 Sun Jun 6 01:08:46 2004
+++ SOURCES/psi-home_etc.patch Sun Feb 20 17:03:58 2005
@@ -7,7 +7,7 @@
{
- QDir proghome(QDir::homeDirPath() + "/.psi");
+ char *home_etc = getenv("HOME_ETC");
-+ QDir proghome((home_etc != NULL ? QString(home_etc) :
QDir::homeDirPath()) + "/.psi");
++ QDir proghome((home_etc != NULL && (strncmp(home_etc, "", 1) != 0) ?
QString(home_etc) : QDir::homeDirPath()) + "/.psi");
if(!proghome.exists()) {
QDir home = QDir::home();
home.mkdir(".psi");
@@ -17,7 +17,7 @@
{
- QDir proghome(QDir::homeDirPath() + "/.psi");
+ char *home_etc = getenv("HOME_ETC");
-+ QDir proghome((home_etc != NULL ? QString(home_etc) :
QDir::homeDirPath()) + "/.psi");
++ QDir proghome((home_etc != NULL && (strncmp(home_etc, "", 1) != 0) ?
QString(home_etc) : QDir::homeDirPath()) + "/.psi");
if(!proghome.exists()) {
QDir home = QDir::home();
home.mkdir(".psi");
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/psi-home_etc.patch?r1=1.5&r2=1.6&f=u
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit