diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-10-14 09:54:13 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-10-14 09:54:13 +0200 |
commit | c0ef14cbffd4eb3fa56ee284c3f1164f7031e557 (patch) | |
tree | 29f636aa3c72f7e95934742811426fea542f3d80 | |
parent | 1385c4c9081685a53d72fd4dec7be56efb500d4c (diff) | |
parent | f6bcaf4cf642b9df09ce6bf398934c8590468fba (diff) |
Merge pull request #1560 from evverx/fix-default-chopping
bus-util: change `Default`-chopping to `Limit`-searching
-rw-r--r-- | src/shared/bus-util.c | 2 |
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); |