* src/main.c (grepdir): Exit with status 2 if a directory loop is
found, since the output might not be "right" (i.e., infinite...).
---
 src/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/main.c b/src/main.c
index 893f025..84564e0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1382,6 +1382,7 @@ grepdir (char const *dir, struct stats const *stats)
               if (!suppress_errors)
                 error (0, 0, _("warning: %s: %s"), dir,
                        _("recursive directory loop"));
+              errseen = 1;
               return 1;
             }
         }
-- 
1.7.6.5


Reply via email to