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

List:       kde-commits
Subject:    icecream/client
From:       Stephan Kulow <coolo () kde ! org>
Date:       2007-11-27 15:16:26
Message-ID: 1196176586.560753.31233.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 742218 by coolo:

patch by Tais M. Hansen to ignore directories 


 M  +4 -0      local.cpp  


--- trunk/icecream/client/local.cpp #742217:742218
@@ -100,6 +100,10 @@
                     after_selflink = true;
                     continue;
                 }
+            } else if ( !S_ISREG( s.st_mode ) ) {
+                // It's not a link and not a file, so just ignore it. We don't
+                // want to accidentially attempt to execute directories.
+                continue;
             }
             best_match = part;
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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