Merge pull request #437 from opencloud-eu/dependabot/go_modules/github.com/KimMachineGun/automemlimit-0.7.1

build(deps): bump github.com/KimMachineGun/automemlimit from 0.7.0 to 0.7.1
This commit is contained in:
Ralf Haferkamp
2025-03-20 17:14:06 +01:00
committed by GitHub
4 changed files with 5 additions and 7 deletions
+1 -3
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, "")
}