[chore] Update KimMachineGun/automemlimit (#3841)

This commit is contained in:
tobi 2025-02-26 21:10:13 +01:00 committed by GitHub
commit 8bc502ba62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 8 deletions

View file

@ -269,11 +269,9 @@ func parseMountInfoLine(line string) (mountInfo, error) {
return mountInfo{}, fmt.Errorf("invalid separator")
}
fields1 := strings.Split(fieldss[0], " ")
fields1 := strings.SplitN(fieldss[0], " ", 7)
if len(fields1) < 6 {
return mountInfo{}, fmt.Errorf("not enough fields before separator: %v", fields1)
} else if len(fields1) > 7 {
return mountInfo{}, fmt.Errorf("too many fields before separator: %v", fields1)
} else if len(fields1) == 6 {
fields1 = append(fields1, "")
}

2
vendor/modules.txt vendored
View file

@ -72,7 +72,7 @@ codeberg.org/superseriousbusiness/exif-terminator
# github.com/DmitriyVTitov/size v1.5.0
## explicit; go 1.14
github.com/DmitriyVTitov/size
# github.com/KimMachineGun/automemlimit v0.7.0
# github.com/KimMachineGun/automemlimit v0.7.1
## explicit; go 1.22.0
github.com/KimMachineGun/automemlimit/memlimit
# github.com/Masterminds/goutils v1.1.1