commit cb20de720ba26bd458c7f4c7997f5039f0d4299e
parent 6dca3f44bb6889d3cef9387f0cfd0364b875237c
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Fri, 10 Jun 2016 20:32:47 +0200
sbofind: check if path is a file rather than if it's readable; root can read it anyway
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbofind b/sbofind
@@ -69,7 +69,7 @@ sub perform_search {
# first get a bunch of names from the TAGS.txt if it's available
my $tags_file = "$config{SBO_HOME}/repo/TAGS.txt";
my @names;
- if (-r $tags_file) {
+ if (-f $tags_file) {
my ($t_fh, $t_exit) = open_read "$config{SBO_HOME}/repo/TAGS.txt";
unless ($t_exit) {
while (my $line = <$t_fh>) {