From: Todd C. Miller Date: Sun, 25 Feb 2018 01:46:00 +0000 (-0700) Subject: We may need the hostname to resolve %h escapes in include files. X-Git-Tag: SUDO_1_8_23^2~114 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f097eb023b0632d8fc7b30320d5a30126b90a1d;p=sudo We may need the hostname to resolve %h escapes in include files. --- 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"));