chiark / gitweb /
logind: 0% and 100% should be valid for UserTasksMax (#3836)
authorTejun Heo <htejun@fb.com>
Mon, 1 Aug 2016 01:38:47 +0000 (21:38 -0400)
committerSven Eden <yamakuzure@gmx.net>
Mon, 19 Jun 2017 07:40:51 +0000 (09:40 +0200)
commit041046782d16a72e5ff169fc8a41b3ec60fd0d17
treeb7b9e5fb24d71d500abe369952a1ecb8268f9a5e
parent16feea611eb2b7d919c241088f5c26ef6b4dc15b
logind: 0% and 100% should be valid for UserTasksMax (#3836)

config_parse_user_tasks_max() was incorrectly accepting percentage value
between 1 and 99.  Update it to accept 0% and 100%.  This brings it in line
with TasksMax handling in elogind.
(cherry picked from commit cb3e4417590196bd30e1b8097348dca6ba34bd15)
src/login/logind-user.c