]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: set fs.file-max sysctl to LONG_MAX rather than ULONG_MAX
authorLennart Poettering <lennart@poettering.net>
Mon, 17 Jun 2019 08:51:25 +0000 (10:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Jun 2019 13:48:11 +0000 (15:48 +0200)
commit6e2f78948403a4cce45b9e34311c9577c624f066
tree88b5a18a7bc7fbab47b0bb5495e80049e42e436c
parent11344d82f12167ea01262f7782c1eaf766bc997d
core: set fs.file-max sysctl to LONG_MAX rather than ULONG_MAX

Since kernel 5.2 the kernel thankfully returns proper errors when we
write a value out of range to the sysctl. Which however breaks writing
ULONG_MAX to request the maximum value. Hence let's write the new
maximum value instead, LONG_MAX.

/cc @brauner

Fixes: #12803
src/core/main.c