mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-08 11:11:10 -06:00
[chore]: Bump go.uber.org/automaxprocs from 1.5.2 to 1.5.3 (#2020)
This commit is contained in:
parent
994d5e80d9
commit
b7891bb462
6 changed files with 14 additions and 6 deletions
4
vendor/go.uber.org/automaxprocs/internal/cgroups/mountpoint.go
generated
vendored
4
vendor/go.uber.org/automaxprocs/internal/cgroups/mountpoint.go
generated
vendored
|
|
@ -95,8 +95,12 @@ func NewMountPointFromLine(line string) (*MountPoint, error) {
|
|||
|
||||
for i, field := range fields[_miFieldIDOptionalFields:] {
|
||||
if field == _mountInfoOptionalFieldsSep {
|
||||
// End of optional fields.
|
||||
fsTypeStart := _miFieldIDOptionalFields + i + 1
|
||||
|
||||
// Now we know where the optional fields end, split the line again with a
|
||||
// limit to avoid issues with spaces in super options as present on WSL.
|
||||
fields = strings.SplitN(line, _mountInfoSep, fsTypeStart+_miFieldCountSecondHalf)
|
||||
if len(fields) != fsTypeStart+_miFieldCountSecondHalf {
|
||||
return nil, mountPointFormatInvalidError{line}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue