update for smartos build (solaris too) (#10378)

This commit is contained in:
Gaige B Paulsen
2020-08-31 13:19:25 -04:00
committed by GitHub
parent f04a1f220c
commit 859ef52886
5 changed files with 26 additions and 11 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ func readDirN(dirPath string, count int) (entries []string, err error) {
}
return nil, osErrToFileErr(err)
}
if count > 0 {
if count > -1 {
if remaining <= len(fis) {
fis = fis[:remaining]
done = true