start-stop-daemon: change priority before dropping privileges
authorAitor Esteve Alvarado <aesteve@singularaircraft.com>
Thu, 7 Mar 2019 09:14:48 +0000 (10:14 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 9 Jun 2019 11:47:49 +0000 (13:47 +0200)
commit7b6d4f50c97b4f375687e8216313b10598b44b49
treef456b0c66da297ed134d9cbbdf9dda148ca0fdfd
parent894f0a32351fe6c28fe86958e5f4e21422394183
start-stop-daemon: change priority before dropping privileges

Currently start-stop-daemon fails when using both the -c option (set uid)
and -N option (set niceness/priority) as it first drops privileges and then
tries to increase the priority. This patch changes the order of execution.

Signed-off-by: Aitor Esteve Alvarado <aesteve@singularaircraft.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
debianutils/start_stop_daemon.c