From ead485b96b2f240a2c27064da79865b7a9339f32 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 9 Sep 2016 16:26:22 -0600 Subject: [PATCH] Fix typo that broke short host name matching when the fqdn flag is enabled. Bug #757 --- plugins/sudoers/sudoers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/sudoers.c b/plugins/sudoers/sudoers.c index ebc6a61f6..c29c82ae0 100644 --- a/plugins/sudoers/sudoers.c +++ b/plugins/sudoers/sudoers.c @@ -1069,7 +1069,7 @@ cb_fqdn(const union sudo_defs_val *sd_un) /* Not remote, just use user_host. */ if ((lhost = strdup(user_host)) != NULL) { if (user_shost != user_host) - shost = strdup(lhost); + shost = strdup(user_shost); else shost = lhost; } -- 2.40.0