Ticket #1733: 0001-Ignoring-system-dirs-dev-proc-and-sys.patch

File 0001-Ignoring-system-dirs-dev-proc-and-sys.patch, 840 bytes (added by vit_r, 15 years ago)

avoiding search in /proc/kcore...

  • src/find.c

    From dd496bbcf74d0e1357ac2c3ad6a0f98664b9ab15 Mon Sep 17 00:00:00 2001
    From: Vit Rosin <vit_r@list.ru>
    Date: Sun, 25 Oct 2009 02:58:43 +0000
    Subject: [PATCH]  Ignoring system dirs /dev, /proc and /sys
      when <Find file> to avoid search in /proc/kcore and so on
    
            (modified: src/find.c)
    ---
     src/find.c |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/src/find.c b/src/find.c
    index 8955dc7..e82f683 100644
    a b typedef enum { 
    8484} FindProgressStatus; 
    8585 
    8686/* List of directories to be ignored, separated by ':' */ 
    87 char *find_ignore_dirs = NULL; 
     87char *find_ignore_dirs = ":./dev:./proc:./sys:"; /* to search in all dirs: char *find_ignore_dirs = NULL; */ 
    8888 
    8989/* static variables to remember find parameters */ 
    9090static WInput *in_start;                        /* Start path */