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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 1 Aug 2016 01:38:47 +0000 (21:38 -0400)
commitcb3e4417590196bd30e1b8097348dca6ba34bd15
tree8da48d958d5feda3acf909654e77769f296d9cd9
parent0d5299ef5a5bedb8921275741d6cbdcc04d69286
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 systemd.
src/login/logind-user.c