summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/bus-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c
index 36a29fbdc0..65922dd93b 100644
--- a/src/shared/bus-util.c
+++ b/src/shared/bus-util.c
@@ -2163,7 +2163,7 @@ int bus_property_get_rlimit(
struct rlimit buf = {};
int z;
- z = rlimit_from_string(startswith(property, "Default") ? property + 7 : property);
+ z = rlimit_from_string(strstr(property, "Limit"));
assert(z >= 0);
getrlimit(z, &buf);