From: Todd C. Miller Date: Thu, 17 May 2012 19:44:22 +0000 (-0400) Subject: Fix #includedir; from Mike Frysinger X-Git-Tag: SUDO_1_7_10~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c4758cb4927a7c1351c32a79da07efb652bf67a;p=sudo Fix #includedir; from Mike Frysinger --HG-- branch : 1.7 --- diff --git a/toke.c b/toke.c index 54e81306c..cdf194ef3 100644 --- a/toke.c +++ b/toke.c @@ -3523,6 +3523,8 @@ _push_include(path, isdir) if (isdir) { struct stat sb; switch (sudo_secure_dir(path, SUDOERS_UID, SUDOERS_GID, &sb)) { + case SUDO_PATH_SECURE: + break; case SUDO_PATH_MISSING: return FALSE; case SUDO_PATH_BAD_TYPE: diff --git a/toke.l b/toke.l index 18f97a4ed..0f6d358cc 100644 --- a/toke.l +++ b/toke.l @@ -814,6 +814,8 @@ _push_include(path, isdir) if (isdir) { struct stat sb; switch (sudo_secure_dir(path, SUDOERS_UID, SUDOERS_GID, &sb)) { + case SUDO_PATH_SECURE: + break; case SUDO_PATH_MISSING: return FALSE; case SUDO_PATH_BAD_TYPE: