From 514b2d6f12934c83b4d7dbdbf8afa4d96415d922 Mon Sep 17 00:00:00 2001 From: Dominik Hassler Date: Mon, 30 Aug 2021 17:40:16 +0200 Subject: [PATCH] fix: build on illumos (Solaris) (#13097) --- cmd/os-readdir_other.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/os-readdir_other.go b/cmd/os-readdir_other.go index 4e31ff3b1..6429627b3 100644 --- a/cmd/os-readdir_other.go +++ b/cmd/os-readdir_other.go @@ -96,7 +96,7 @@ func readDirWithOpts(dirPath string, opts readDirOpts) (entries []string, err er maxEntries := 1000 if opts.count > 0 && opts.count < maxEntries { - maxEntries = count + maxEntries = opts.count } done := false