summaryrefslogtreecommitdiff
path: root/plugins/sudoers/toke.l
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sudoers/toke.l')
-rw-r--r--plugins/sudoers/toke.l16
1 files changed, 14 insertions, 2 deletions
diff --git a/plugins/sudoers/toke.l b/plugins/sudoers/toke.l
index 9e9231672..91f00eebc 100644
--- a/plugins/sudoers/toke.l
+++ b/plugins/sudoers/toke.l
@@ -1197,8 +1197,8 @@ oflow:
* A missing or insecure include dir is simply ignored.
* Returns false on error, else true.
*/
-bool
-push_include(const char *opath, bool isdir)
+static bool
+push_include_int(const char *opath, bool isdir)
{
struct path_list *pl;
char *path;
@@ -1304,6 +1304,18 @@ push_include(const char *opath, bool isdir)
debug_return_bool(true);
}
+bool
+push_include(const char *opath)
+{
+ return push_include_int(opath, false);
+}
+
+bool
+push_includedir(const char *opath)
+{
+ return push_include_int(opath, true);
+}
+
/*
* Restore the previous sudoers file and buffer, or, in the case
* of an includedir, switch to the next file in the dir.