[Forensics-changes] [yara] 253/415: Fix issue 87

Hilko Bengen bengen at moszumanska.debian.org
Thu Apr 3 05:43:12 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch debian
in repository yara.

commit 0277aa527ae0b30233bb01144e7ba0fcb0c098e5
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Mon Nov 25 17:37:59 2013 +0100

    Fix issue 87
---
 yara.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yara.c b/yara.c
index f392117..5070548 100644
--- a/yara.c
+++ b/yara.c
@@ -185,7 +185,7 @@ void scan_dir(const char* dir, int recursive, YARA_CONTEXT* context, YARACALLBAC
                     //printf("Processing %s\n", de->d_name);
                     yr_scan_file(full_path, context, callback, full_path);
                 }
-                else if(recursive && S_ISDIR(st.st_mode) && de->d_name[0] != '.')
+                else if(recursive && S_ISDIR(st.st_mode) && !S_ISLNK(st.st_mode) && de->d_name[0] != '.')
                 {
                     //printf("Entering %s\n", de->d_name);
                     scan_dir(full_path, recursive, context, callback);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list