diff --git a/cmd/os-readdir_other.go b/cmd/os-readdir_other.go index ae6db23b2..256cbeea9 100644 --- a/cmd/os-readdir_other.go +++ b/cmd/os-readdir_other.go @@ -126,7 +126,7 @@ func readDirN(dirPath string, count int) (entries []string, err error) { isSysErrTooManySymlinks(err) { continue } - return err + return nil, err } // Ignore symlinked directories.