summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2018-06-03 05:45:33 -0600
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-06-04 10:09:55 +0300
commitc3115292a7f2d2623cb45054a361e997ad9330c9 (patch)
treea2585cc92cce2d59179608fd03e90861db313288 /tpl
parent0c6c98e401b22fa2737bb7266742ae88722825ab (diff)
tpl: Prevent isBaseTemplate() from matching "baseof" in dir
Fixes #4809
Diffstat (limited to 'tpl')
-rw-r--r--tpl/tplimpl/template.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go
index 74860b67e..8f91113a8 100644
--- a/tpl/tplimpl/template.go
+++ b/tpl/tplimpl/template.go
@@ -726,5 +726,5 @@ func isBackupFile(path string) bool {
const baseFileBase = "baseof"
func isBaseTemplate(path string) bool {
- return strings.Contains(path, baseFileBase)
+ return strings.Contains(filepath.Base(path), baseFileBase)
}