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

List:       kde-commits
Subject:    KDE_3_1_BRANCH: kdelibs/kdecore
From:       Waldo Bastian <bastian () kde ! org>
Date:       2003-08-27 13:53:04
[Download RAW message or body]

CVS commit by waba: 

Fix TryExec= support


  M +3 -3      kdesktopfile.cpp   1.33.2.4


--- kdelibs/kdecore/kdesktopfile.cpp  #1.33.2.3:1.33.2.4
@@ -217,5 +217,5 @@ bool KDesktopFile::tryExec() const
   if (!te.isEmpty()) {
     if (te[0] == '/') {
-      if (::access(QFile::encodeName(te), R_OK & X_OK))
+      if (::access(QFile::encodeName(te), R_OK | X_OK))
         return false;
     } else {
@@ -228,5 +228,5 @@ bool KDesktopFile::tryExec() const
       for (; it != dirs.end(); ++it) {
         QString fName = *it + "/" + te;
-        if (::access(QFile::encodeName(fName), R_OK & X_OK) == 0)
+        if (::access(QFile::encodeName(fName), R_OK | X_OK) == 0)
         {
           match = true;


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

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