summaryrefslogtreecommitdiff
path: root/src/share/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/common')
-rw-r--r--src/share/common6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/share/common b/src/share/common
index 11e7969..bd887d3 100644
--- a/src/share/common
+++ b/src/share/common
@@ -425,6 +425,12 @@ check_key_file_permissions() {
log debug "checking path permission '$path'..."
+ # rewrite path if it points to a symlink
+ if [ -h "$path" ] ; then
+ path=$(readlink -f "$path")
+ log debug "checking path symlink '$path'..."
+ fi
+
# return 255 if cannot stat file
if ! stat=$(ls -ld "$path" 2>/dev/null) ; then
log error "could not stat path '$path'."