Adjust the sanity check to path length 4

This commit is contained in:
Bjørn Erik Pedersen 2016-07-30 20:07:35 +02:00
parent 94d998989d
commit 15b6693541

View file

@ -468,7 +468,7 @@ func FindCWD() (string, error) {
func SymbolicWalk(fs afero.Fs, root string, walker filepath.WalkFunc) error {
// Sanity check
if len(root) < 5 {
if len(root) < 4 {
return fmt.Errorf("Path to short, cannot walk the root: %s", root)
}