File kdebase-pardus-exclude-proc-sys-from-search.patch of Package kdebase3
From 5d1fa1f0676d795488af6442de919c0913d4d804 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Ozan=20=C3=87a=C4=9Flayan?= <ozan@pardus.org.tr>
Date: Fri, 24 Jun 2011 09:43:25 +0000
Subject: [PATCH] kfind: Don't search /proc, /sys and /dev
---
kfind/kquery.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kfind/kquery.cpp b/kfind/kquery.cpp
index 5d5446f..cf58eaa 100644
--- a/kfind/kquery.cpp
+++ b/kfind/kquery.cpp
@@ -252,7 +252,7 @@ void KQuery::processQuery( KFileItem* file)
bool foundmeta=false;
QString filename = file->url().path();
- if(filename.startsWith("/dev/"))
+ if(filename.startsWith("/dev/") || filename.startsWith("/proc/") || filename.startsWith("/sys/"))
return;
KFileMetaInfo metadatas(filename);
--
1.6.1