also resolve vars in whitelist target path

networking
brl 10 years ago
parent 5c667946e9
commit 89775d8f99

@ -63,9 +63,13 @@ func (fs *Filesystem) newItem(path, target string, readonly bool) (*mountItem, e
if err != nil { if err != nil {
return nil, err return nil, err
} }
t, err := fs.resolveVars(target)
if err != nil {
return nil, err
}
return &mountItem{ return &mountItem{
path: p, path: p,
target: target, target: t,
//readonly: readonly, //readonly: readonly,
fs: fs, fs: fs,
}, nil }, nil

Loading…
Cancel
Save