mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Remove confusion between --user and --script-user.
This commit is contained in:
@@ -388,10 +388,12 @@ int main (int argc, char **argv)
|
|||||||
daemon->scriptuser &&
|
daemon->scriptuser &&
|
||||||
(daemon->lease_change_command || daemon->luascript))
|
(daemon->lease_change_command || daemon->luascript))
|
||||||
{
|
{
|
||||||
if ((ent_pw = getpwnam(daemon->scriptuser)))
|
struct passwd *scr_pw;
|
||||||
|
|
||||||
|
if ((scr_pw = getpwnam(daemon->scriptuser)))
|
||||||
{
|
{
|
||||||
script_uid = ent_pw->pw_uid;
|
script_uid = scr_pw->pw_uid;
|
||||||
script_gid = ent_pw->pw_gid;
|
script_gid = scr_pw->pw_gid;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
baduser = daemon->scriptuser;
|
baduser = daemon->scriptuser;
|
||||||
|
|||||||
Reference in New Issue
Block a user