diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2015-10-13 18:45:11 +0000 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2015-10-13 18:45:11 +0000 |
commit | f6bcaf4cf642b9df09ce6bf398934c8590468fba (patch) | |
tree | 2d6e0c80586c396a7d18af6b9c4b6ddaaa3e2548 /src/shared/bus-util.c | |
parent | 400c32ef24bb62915359bc0d5688fd14fda5153d (diff) |
bus-util: change `Default`-chopping to `Limit`-searching
See https://github.com/systemd/systemd/pull/1534#commitcomment-13744013
Actually, thinking about this, maybe it would be nicer to actually look
for "Limit" in the string rather than chopping off a "Default"....
Sounds more generic...
Diffstat (limited to 'src/shared/bus-util.c')
-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); |