aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-06-10 20:32:47 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-06-10 20:32:47 +0200
commitcb20de720ba26bd458c7f4c7997f5039f0d4299e (patch)
treea832cf42cb4a9d3923b00ab76bba8003e8b4fa91
parent6dca3f44bb6889d3cef9387f0cfd0364b875237c (diff)
downloadsbotools2-cb20de720ba26bd458c7f4c7997f5039f0d4299e.tar.xz
sbofind: check if path is a file rather than if it's readable; root can read it anyway
-rwxr-xr-xsbofind2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbofind b/sbofind
index 8c78b44..0db08a6 100755
--- 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>) {