]> granicus.if.org Git - sudo/commitdiff
Fix #includedir; from Mike Frysinger
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 17 May 2012 19:44:22 +0000 (15:44 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 17 May 2012 19:44:22 +0000 (15:44 -0400)
--HG--
branch : 1.7

toke.c
toke.l

diff --git a/toke.c b/toke.c
index 54e81306ca14a3deabf166153b0980239096699a..cdf194ef352e1e050512a4b28d8d2eaed8d70829 100644 (file)
--- 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 18f97a4edfb76280e2893e5d4f60e02e28dea078..0f6d358cc01b32b0c8d5b7a9526a50c046e28f80 100644 (file)
--- 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: