diff options
Diffstat (limited to 'findutils/grep.c')
-rw-r--r-- | findutils/grep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index 40caef423..0f1c11abb 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -254,7 +254,10 @@ static int grep_file(FILE *file) | |||
254 | while (pattern_ptr) { | 254 | while (pattern_ptr) { |
255 | gl = (grep_list_data_t *)pattern_ptr->data; | 255 | gl = (grep_list_data_t *)pattern_ptr->data; |
256 | if (FGREP_FLAG) { | 256 | if (FGREP_FLAG) { |
257 | found |= (strstr(line, gl->pattern) != NULL); | 257 | found |= (((option_mask32 & OPT_i) |
258 | ? strcasestr(line, gl->pattern) | ||
259 | : strstr(line, gl->pattern) | ||
260 | ) != NULL); | ||
258 | } else { | 261 | } else { |
259 | if (!(gl->flg_mem_alocated_compiled & COMPILED)) { | 262 | if (!(gl->flg_mem_alocated_compiled & COMPILED)) { |
260 | gl->flg_mem_alocated_compiled |= COMPILED; | 263 | gl->flg_mem_alocated_compiled |= COMPILED; |