summaryrefslogtreecommitdiff
path: root/src/libudev/libudev.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-10 16:10:24 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-10 17:31:31 +0100
commitd580265eb4bbbafabdb3b7f0b501c0b05b76b2b7 (patch)
treee6274430c7edb85a4da57301898c6f1600ec2095 /src/libudev/libudev.h
parent65dce26488030eff078c498673d5d93e3c87b6a1 (diff)
core: when parsing resource limits, be more careful with types and corner cases
Let's not convert RLIM_INFINITY to "unsigned long long" and then back to rlim_t, but let's leave it in the right type right-away. Parse resource limits as 64 bit in all cases, as according to the man page that's what libc does anyway. Make sure setting a resource limit to (uint64_t) -1 results in a parsing error, and isn't implicitly converted to RLIM_INFINITY.
Diffstat (limited to 'src/libudev/libudev.h')
0 files changed, 0 insertions, 0 deletions