cmd/os-readdir_other.go - return nil with err (#11772)

This commit is contained in:
Philip Brown 2021-03-12 16:22:25 +01:00 committed by GitHub
parent 910097bbbc
commit 75db500e85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.