From 8a7ac445904ad4003f47802129aea4b54772ccb2 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 17 May 2012 15:42:57 -0400 Subject: [PATCH] Fix #includedir; from Mike Frysinger --- plugins/sudoers/toke.c | 2 ++ plugins/sudoers/toke.l | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/sudoers/toke.c b/plugins/sudoers/toke.c index 83125a30c..40bc1472f 100644 --- a/plugins/sudoers/toke.c +++ b/plugins/sudoers/toke.c @@ -3525,6 +3525,8 @@ _push_include(char *path, bool 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: debug_return_bool(false); case SUDO_PATH_BAD_TYPE: diff --git a/plugins/sudoers/toke.l b/plugins/sudoers/toke.l index 40981cd83..84e8de62d 100644 --- a/plugins/sudoers/toke.l +++ b/plugins/sudoers/toke.l @@ -816,6 +816,8 @@ _push_include(char *path, bool 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: debug_return_bool(false); case SUDO_PATH_BAD_TYPE: -- 2.40.0