From 6f097eb023b0632d8fc7b30320d5a30126b90a1d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 24 Feb 2018 18:46:00 -0700 Subject: [PATCH] We may need the hostname to resolve %h escapes in include files. --- plugins/sudoers/cvtsudoers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/sudoers/cvtsudoers.c b/plugins/sudoers/cvtsudoers.c index 2d7e24c03..520a1d60d 100644 --- a/plugins/sudoers/cvtsudoers.c +++ b/plugins/sudoers/cvtsudoers.c @@ -249,6 +249,9 @@ main(int argc, char *argv[]) } } + /* We may need the hostname to resolve %h escapes in include files. */ + get_hostname(); + /* Setup defaults data structures. */ if (!init_defaults()) sudo_fatalx(U_("unable to initialize sudoers default values")); -- 2.50.1