From 89775d8f99350c6d0e0339be2fddb3c60a83c22c Mon Sep 17 00:00:00 2001 From: brl Date: Sun, 7 Jun 2015 19:54:34 -0400 Subject: [PATCH] also resolve vars in whitelist target path --- fs/fs.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/fs.go b/fs/fs.go index a4e4829..11bbb38 100644 --- a/fs/fs.go +++ b/fs/fs.go @@ -63,9 +63,13 @@ func (fs *Filesystem) newItem(path, target string, readonly bool) (*mountItem, e if err != nil { return nil, err } + t, err := fs.resolveVars(target) + if err != nil { + return nil, err + } return &mountItem{ path: p, - target: target, + target: t, //readonly: readonly, fs: fs, }, nil