diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-06-10 20:32:47 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-06-10 20:32:47 +0200 |
commit | cb20de720ba26bd458c7f4c7997f5039f0d4299e (patch) | |
tree | a832cf42cb4a9d3923b00ab76bba8003e8b4fa91 | |
parent | 6dca3f44bb6889d3cef9387f0cfd0364b875237c (diff) | |
download | sbotools2-cb20de720ba26bd458c7f4c7997f5039f0d4299e.tar.xz |
sbofind: check if path is a file rather than if it's readable; root can read it anyway
-rwxr-xr-x | sbofind | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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>) { |