aboutsummaryrefslogtreecommitdiffstats
path: root/src/msec_find
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-09-09 00:03:50 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-09-09 00:03:50 +0000
commit8dcb259983ed00e53bd245776dc636e1724cf5ca (patch)
tree7510c9ae950743e0196c7e6e2b9263388ee3225b /src/msec_find
parente00b722e4c41f73bd27d41488d1088e929b62db5 (diff)
downloadmsec-8dcb259983ed00e53bd245776dc636e1724cf5ca.tar
msec-8dcb259983ed00e53bd245776dc636e1724cf5ca.tar.gz
msec-8dcb259983ed00e53bd245776dc636e1724cf5ca.tar.bz2
msec-8dcb259983ed00e53bd245776dc636e1724cf5ca.tar.xz
msec-8dcb259983ed00e53bd245776dc636e1724cf5ca.zip
Skip checks on /sys partitions.
Diffstat (limited to 'src/msec_find')
-rw-r--r--src/msec_find/find.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/msec_find/find.c b/src/msec_find/find.c
index 55a0d03..381dc25 100644
--- a/src/msec_find/find.c
+++ b/src/msec_find/find.c
@@ -82,7 +82,9 @@ static int traverse(const char *file, const struct stat *sb, int flag, struct FT
/*
* Don't walk throught /dev & /proc
*/
- if ( (strncmp("/proc", file, 5) == 0) || (strncmp("/dev", file, 4) == 0) )
+ if ( (strncmp("/proc", file, 5) == 0) ||
+ (strncmp("/dev", file, 4) == 0) ||
+ (strncmp("/sys", file, 4) == 0) )
return 0;
if (use_regexp && regexec(&exclude_regexp, file, 0, NULL, 0) == 0) {