also resolve vars in whitelist target path

master
brl 10 years ago
parent e03b9ce9cc
commit 8118bc377a

@ -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

Loading…
Cancel
Save