Merge pull request #1560 from evverx/fix-default-chopping

bus-util: change `Default`-chopping to `Limit`-searching
This commit is contained in:
Lennart Poettering
2015-10-14 09:54:13 +02:00
+1 -1
View File
@@ -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);