| 5068 | } |
| 5069 | |
| 5070 | static bool validate_search_args(const char *root_path, const char *file_pattern) { |
| 5071 | if (!validate_search_path_arg(root_path)) { |
| 5072 | return false; |
| 5073 | } |
| 5074 | if (file_pattern && !validate_search_path_arg(file_pattern)) { |
| 5075 | return false; |
| 5076 | } |
| 5077 | return true; |
| 5078 | } |
| 5079 | |
| 5080 | /* Write pattern to a temp file for grep -f. Returns true on success. */ |
| 5081 | static bool write_pattern_file(char *tmpfile, int tmpfile_sz, const char *pattern) { |
no test coverage detected