diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2015-08-30 14:52:48 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2015-08-30 14:52:48 -0400 |
commit | 27ae855598129ed167699ecf787406238f4f576b (patch) | |
tree | 8159d85b301ea08ac04c265613e137f79163cf3f /bfs.c | |
parent | e24ffc3a9ea195016a9543d9cc4bf99049f245ce (diff) | |
download | bfs-27ae855598129ed167699ecf787406238f4f576b.tar.xz |
Fix -nohidden return value.
Diffstat (limited to 'bfs.c')
-rw-r--r-- | bfs.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -207,8 +207,12 @@ static bool eval_hidden(const char *fpath, const struct BFTW *ftwbuf, const cmdl * -nohidden action. */ static bool eval_nohidden(const char *fpath, const struct BFTW *ftwbuf, const cmdline *cl, const expression *expr, int *ret) { - return !eval_hidden(fpath, ftwbuf, cl, expr, ret) - || eval_prune(fpath, ftwbuf, cl, expr, ret); + if (eval_hidden(fpath, ftwbuf, cl, expr, ret)) { + eval_prune(fpath, ftwbuf, cl, expr, ret); + return false; + } else { + return true; + } } /** |