diff options
author | 2018-10-21 15:59:37 +0200 | |
---|---|---|
committer | 2018-10-21 13:59:37 +0000 | |
commit | 4b1b0ec9e61dcf02dc7a79e504ca3eae4a3b4b53 (patch) | |
tree | 5ccb309de73dcf49cc4370ec3e08a64604b8e347 /plugin/file/zone.go | |
parent | cf0422371825e97608950d015b5f570416444d4f (diff) | |
download | coredns-4b1b0ec9e61dcf02dc7a79e504ca3eae4a3b4b53.tar.gz coredns-4b1b0ec9e61dcf02dc7a79e504ca3eae4a3b4b53.tar.zst coredns-4b1b0ec9e61dcf02dc7a79e504ca3eae4a3b4b53.zip |
Use filepath when manipulating file paths (#2221)
Automatically submitted.
Diffstat (limited to 'plugin/file/zone.go')
-rw-r--r-- | plugin/file/zone.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/file/zone.go b/plugin/file/zone.go index ecfd74faa..e94a00f16 100644 --- a/plugin/file/zone.go +++ b/plugin/file/zone.go @@ -3,7 +3,7 @@ package file import ( "fmt" "net" - "path" + "path/filepath" "strings" "sync" "time" @@ -48,7 +48,7 @@ func NewZone(name, file string) *Zone { z := &Zone{ origin: dns.Fqdn(name), origLen: dns.CountLabel(dns.Fqdn(name)), - file: path.Clean(file), + file: filepath.Clean(file), Tree: &tree.Tree{}, Expired: new(bool), reloadShutdown: make(chan bool), |