From 8b3d118f62d80e65d912dfcd6c96d212060358e2 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 27 Mar 2012 12:24:39 -0400 Subject: [PATCH] Fix matching of "Path askpass" and "Path noexec" --- common/sudo_conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/sudo_conf.c b/common/sudo_conf.c index 3b7a0cc4e..238d21f26 100644 --- a/common/sudo_conf.c +++ b/common/sudo_conf.c @@ -105,10 +105,10 @@ static struct sudo_conf_data { NULL, { #define SUDO_CONF_ASKPASS_IDX 0 - { "askpass", sizeof("askpass"), _PATH_SUDO_ASKPASS }, + { "askpass", sizeof("askpass") - 1, _PATH_SUDO_ASKPASS }, #ifdef _PATH_SUDO_NOEXEC #define SUDO_CONF_NOEXEC_IDX 1 - { "noexec", sizeof("noexec"), _PATH_SUDO_NOEXEC }, + { "noexec", sizeof("noexec") - 1, _PATH_SUDO_NOEXEC }, #endif { NULL } }