]> git.ipfire.org Git - thirdparty/systemd.git/commit
rlimit: don't assume getrlimit() always succeeds
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Sep 2017 17:37:11 +0000 (19:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Sep 2017 13:28:05 +0000 (15:28 +0200)
commitc4ad3f43ef4cbe73d7d2c4516ab17f0e907dfe16
tree38f7ee7fb2d34425ba5ea362e3f617d669de10c7
parent915b1d0174af808dd4cbea1357490febfba7cdc0
rlimit: don't assume getrlimit() always succeeds

In times of seccomp it might very well fail, and given that we return
failures from this function anyway, let's also propagate getrlimit()
failures, just to be safe.
src/basic/rlimit-util.c