aboutsummaryrefslogtreecommitdiff
path: root/plugin/dnssec
diff options
context:
space:
mode:
authorGravatar Manuel Stocker <mensi@mensi.ch> 2018-10-21 15:59:37 +0200
committerGravatar corbot[bot] <corbot[bot]@users.noreply.github.com> 2018-10-21 13:59:37 +0000
commit4b1b0ec9e61dcf02dc7a79e504ca3eae4a3b4b53 (patch)
tree5ccb309de73dcf49cc4370ec3e08a64604b8e347 /plugin/dnssec
parentcf0422371825e97608950d015b5f570416444d4f (diff)
downloadcoredns-4b1b0ec9e61dcf02dc7a79e504ca3eae4a3b4b53.tar.gz
coredns-4b1b0ec9e61dcf02dc7a79e504ca3eae4a3b4b53.tar.zst
coredns-4b1b0ec9e61dcf02dc7a79e504ca3eae4a3b4b53.zip
Use filepath when manipulating file paths (#2221)
Automatically submitted.
Diffstat (limited to 'plugin/dnssec')
-rw-r--r--plugin/dnssec/setup.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/dnssec/setup.go b/plugin/dnssec/setup.go
index a699ee33c..df7e54b70 100644
--- a/plugin/dnssec/setup.go
+++ b/plugin/dnssec/setup.go
@@ -2,7 +2,7 @@ package dnssec
import (
"fmt"
- "path"
+ "path/filepath"
"strconv"
"strings"
@@ -146,8 +146,8 @@ func keyParse(c *caddy.Controller) ([]*DNSKEY, error) {
if strings.HasSuffix(k, ".private") {
base = k[:len(k)-8]
}
- if !path.IsAbs(base) && config.Root != "" {
- base = path.Join(config.Root, base)
+ if !filepath.IsAbs(base) && config.Root != "" {
+ base = filepath.Join(config.Root, base)
}
k, err := ParseKeyFile(base+".key", base+".private")
if err != nil {