summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-02-26 21:10:13 +0100
committerLibravatar GitHub <noreply@github.com>2025-02-26 21:10:13 +0100
commit8bc502ba6257158ff8f6eee1a2d9158c099dd6f3 (patch)
tree40af05645a1eb3378ef70942454d742c315afc5b /vendor
parent[feature] Enforce OAuth token scopes (#3835) (diff)
downloadgotosocial-8bc502ba6257158ff8f6eee1a2d9158c099dd6f3.tar.xz
[chore] Update KimMachineGun/automemlimit (#3841)
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/KimMachineGun/automemlimit/memlimit/cgroups.go4
-rw-r--r--vendor/modules.txt2
2 files changed, 2 insertions, 4 deletions
diff --git a/vendor/github.com/KimMachineGun/automemlimit/memlimit/cgroups.go b/vendor/github.com/KimMachineGun/automemlimit/memlimit/cgroups.go
index 809cc6d0d..73a57c3eb 100644
--- a/vendor/github.com/KimMachineGun/automemlimit/memlimit/cgroups.go
+++ b/vendor/github.com/KimMachineGun/automemlimit/memlimit/cgroups.go
@@ -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, "")
}
diff --git a/vendor/modules.txt b/vendor/modules.txt
index eec809a56..e8a4b014a 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -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