From 06d85ec60b74761fed826fdfb1e97810665e089d Mon Sep 17 00:00:00 2001 From: otto-dev Date: Wed, 20 Jul 2022 07:44:50 +1000 Subject: [PATCH] List empty files without -u --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index 0dad3c072..06015ac11 100644 --- a/src/search.c +++ b/src/search.c @@ -322,7 +322,7 @@ void search_file(const char *file_full_path) { f_len = statbuf.st_size; if (f_len == 0) { - if (opts.query[0] == '.' && opts.query_len == 1 && !opts.literal && opts.search_all_files) { + if (opts.query[0] == '.' && opts.query_len == 1 && !opts.literal) { matches_count = search_buf(buf, f_len, file_full_path); } else { log_debug("Skipping %s: file is empty.", file_full_path);