Adjust the sanity check to path length 4
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 30 Jul 2016 18:07:35 +0000 (20:07 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 30 Jul 2016 18:07:35 +0000 (20:07 +0200)
helpers/path.go

index 91017d51310253a0aa561aa31a9c7477c5ccccaf..3c0d530f2389207864bcbc03f11b0a63ba77199e 100644 (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)
        }