From 10738b34290ac3cf0d7ee3098928213c77bc2840 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Wed, 14 Feb 2018 09:18:37 -0700 Subject: [PATCH] allow finding symlink pubkeys --- lib/App/GroupSecret/File.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/App/GroupSecret/File.pm b/lib/App/GroupSecret/File.pm index 0cc42e8..4be3e5c 100644 --- a/lib/App/GroupSecret/File.pm +++ b/lib/App/GroupSecret/File.pm @@ -365,7 +365,7 @@ sub find_public_key { my @dirs = split(/:/, $ENV{GROUPSECRET_PATH} || ".:keys:$ENV{HOME}/.ssh"); for my $dir (@dirs) { my $filepath = File::Spec->catfile($dir, $key->{filename}); - return $filepath if -f $filepath; + return $filepath if -e $filepath && !-d $filepath; } } } -- 2.45.2