projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
400c32e
)
bus-util: change `Default`-chopping to `Limit`-searching
author
Evgeny Vereshchagin
<evvers@ya.ru>
Tue, 13 Oct 2015 18:45:11 +0000
(18:45 +0000)
committer
Evgeny Vereshchagin
<evvers@ya.ru>
Tue, 13 Oct 2015 18:45:11 +0000
(18:45 +0000)
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...
src/shared/bus-util.c
patch
|
blob
|
history
diff --git
a/src/shared/bus-util.c
b/src/shared/bus-util.c
index
36a29fb
..
65922dd
100644
(file)
--- 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(st
artswith(property, "Default") ? property + 7 : property
);
+ z = rlimit_from_string(st
rstr(property, "Limit")
);
assert(z >= 0);
getrlimit(z, &buf);