From a90d85f9e7ca8329d05bb7dd02cf807b9086b71e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 19 Jul 2009 22:33:09 +0200 Subject: [PATCH] fts: avoid false-positive cycle-detection * lib/fts.c (fts_read): Reinitialize cycle-detection data structures for each new command line argument. --- ChangeLog | 6 ++++++ lib/fts.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 56a6bdace..9c7885288 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-07-19 Jim Meyering + + fts: avoid false-positive cycle-detection + * lib/fts.c (fts_read): Reinitialize cycle-detection data structures + for each new command line argument. + 2009-07-19 Bruno Haible Fix build error on mingw with the modules sys_select and unistd. diff --git a/lib/fts.c b/lib/fts.c index 0cbb9fb64..bbcd1ff1f 100644 --- a/lib/fts.c +++ b/lib/fts.c @@ -932,7 +932,9 @@ next: tmp = p; SET(FTS_STOP); return (NULL); } + free_dir(sp); fts_load(sp, p); + setup_dir(sp); goto check_for_dir; } -- 2.11.0