From 2d87aa40c84799c2ccf6f8b5593a390670aaff06 Mon Sep 17 00:00:00 2001 From: "Daniel F. Dickinson" Date: Sun, 23 Dec 2018 00:14:53 -0500 Subject: [PATCH] nut: really run upsd as non-root One local removal was missed in last push of this fix, so in certain circumstances upsd would run as root even when it shouldn't. Fixes f48b060fa752 ("nut: Fix upsd runs as root") Closes: #6697 (properly) Signed-off-by: Daniel F. Dickinson --- net/nut/files/nut-server.init | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/nut/files/nut-server.init b/net/nut/files/nut-server.init index 2cdeb96cf0..a1df016454 100755 --- a/net/nut/files/nut-server.init +++ b/net/nut/files/nut-server.init @@ -225,7 +225,6 @@ build_global_driver_config() { } build_config() { - local RUNAS=nut local STATEPATH=/var/run/nut mkdir -m 0755 -p "$(dirname "$UPS_C")" @@ -281,7 +280,7 @@ start_driver_instance() { } start_server_instance() { - local RUNAS + local RUNAS=nut build_config [ "$haveserver" != 1 ] && return -- 2.30.2