From f90fcdf15207c4a979b9c38e338b5e3a73a86fb5 Mon Sep 17 00:00:00 2001 From: Bernhard Amann Date: Fri, 25 Oct 2013 18:27:57 -0700 Subject: [PATCH] Revert "Fix the dir module." This reverts commit 4b0ee2e7ca904d150a687435c2e1b0fdbc241572. Sorry, bad idea. --- scripts/base/utils/dir.bro | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/base/utils/dir.bro b/scripts/base/utils/dir.bro index 30d6fed832..e64af43b15 100644 --- a/scripts/base/utils/dir.bro +++ b/scripts/base/utils/dir.bro @@ -28,8 +28,7 @@ event Dir::monitor_ev(dir: string, last_files: set[string], callback: function(fname: string), poll_interval: interval) { - # the command lists all file in the directory in the form [inode]-[ctime] [filename] - when ( local result = Exec::run([$cmd=fmt("find \"%s\" -depth 1 -exec stat -f \"%%i-%%c %%N\" {} \\;", str_shell_escape(dir))]) ) + when ( local result = Exec::run([$cmd=fmt("ls -i -1 \"%s/\"", str_shell_escape(dir))]) ) { if ( result$exit_code != 0 ) {