Sophie

Sophie

distrib > Mageia > 9 > x86_64 > by-pkgid > 354d8878908d5f5b7c51498f39e59e80 > files > 1

chkrootkit-0.57-1.mga9.src.rpm

--- chkrootkit	2009-07-30 16:10:54.000000000 +0200
+++ chkrootkit.oden	2010-03-11 14:10:46.694237960 +0100
@@ -1232,12 +1232,9 @@
 {
    ## Check if -fstype nfs works
    findargs=""
-   if find /etc -maxdepth 0 >/dev/null 2>&1; then
-        find /etc ! -fstype nfs -maxdepth 0 >/dev/null 2>&1 && \
-           findargs="! -fstype nfs "
-   elif find /etc -prune > /dev/null 2>&1; then
+   if find /etc -prune > /dev/null 2>&1; then
         find /etc ! -fstype nfs -prune > /dev/null 2>&1 && \
-           findargs="! -fstype nfs "
+           findargs="-fstype nfs -prune -false -o"
    fi
 }