aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2019-10-03 20:05:46 +0000
committerKyle Evans <kevans@FreeBSD.org>2019-10-03 20:05:46 +0000
commitfa0e0c02694f71adeea0962d9240385e08d8d12e (patch)
tree91121a34971dea2f6a8b91678bdda38b963f9d9d
parentc5dac63c15fb31613515dc50a4a654de62abd23b (diff)
Notes
-rwxr-xr-xusr.sbin/certctl/certctl.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/certctl/certctl.sh b/usr.sbin/certctl/certctl.sh
index cab9c7deeaf5..1cfa68e666e7 100755
--- a/usr.sbin/certctl/certctl.sh
+++ b/usr.sbin/certctl/certctl.sh
@@ -69,7 +69,7 @@ create_trusted_link()
return 1
fi
[ $VERBOSE -gt 0 ] && echo "Adding $hash.0 to trust store"
- [ $NOOP -eq 0 ] && ln -fs "$1" "$CERTDESTDIR/$hash.0"
+ [ $NOOP -eq 0 ] && ln -fs $(realpath "$1") "$CERTDESTDIR/$hash.0"
}
create_blacklisted()
@@ -78,7 +78,7 @@ create_blacklisted()
hash=$( do_hash "$1" ) || return
[ $VERBOSE -gt 0 ] && echo "Adding $hash.0 to blacklist"
- [ $NOOP -eq 0 ] && ln -fs "$1" "$BLACKLISTDESTDIR/$hash.0"
+ [ $NOOP -eq 0 ] && ln -fs $(realpath "$1") "$BLACKLISTDESTDIR/$hash.0"
}
do_scan()