diff options
Diffstat (limited to 'sbofind')
-rwxr-xr-x | sbofind | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -131,7 +131,11 @@ sub perform_search { } } if ($config{LOCAL_OVERRIDES} ne 'FALSE') { - opendir(my $dh, $config{LOCAL_OVERRIDES}); + if (! opendir(my $dh, $config{LOCAL_OVERRIDES})) { + warn("could not read the configured LOCAL_OVERRIDES directory '$config{LOCAL_OVERRIDES}'."); + exit 1; + } + while (my $dir = readdir($dh)) { next if $local{$dir}; if ($dir =~ $search_name_re or in($dir, @names)) { |